Using next Router with useQuery - TanStack