TanStackT
TanStack3y ago
7 replies
dead-brown

Next 13.4 - No QueryClient set

Hey, I just created a new next.app (13.4), added @tanstack/react-query. Created _app.tsx file in app folder and put what's in the SSR section of RQ documentation.
Created page.tsx inside folder called 1 inside app folder and just used react query like I used to: const query = useQuery({ queryKey: ['todos'], queryFn: () => axios.get('/any/thing') }). And only thing I get is: Error: No QueryClient set, use QueryClientProvider to set one
image.png
Was this page helpful?