How to use next.js router.push() properly with an useQuery custom hook call? - TanStack