Best practice for redirecting after a fetch - TanStack