Replies: 14 comments 22 replies
-
Have you read the migration guide? As the error suggests, you need to add a QueryClientProvider. |
Beta Was this translation helpful? Give feedback.
-
You can mock
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I am getting the same error, I don't understand everything looks in place:
Desktop:
|
Beta Was this translation helpful? Give feedback.
-
I think for a bunch of people this might happen if you are following Tan's course. In which case, you should probably install v2 instead, or try to learn and update as you go, until he releases the v3 course. |
Beta Was this translation helpful? Give feedback.
-
I am facing the same issue. : |
Beta Was this translation helpful? Give feedback.
-
Got this issue with nextjs 12 |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue with |
Beta Was this translation helpful? Give feedback.
-
Following on from my reply: #1461 (reply in thread) I switched back to Now works. |
Beta Was this translation helpful? Give feedback.
-
I had the same error but with in my monorepo setup, so basically the project i was working with had tanstack/react-query installed locally in the project and the same project also imports another workspace project with tanstack/react-query installed there too, so what have i done to get it fixed was using that workspace to export the reactQueryProvider and use on my main project. Thats kinda weird that happens but it worked. PS : im using pnpm as package manager |
Beta Was this translation helpful? Give feedback.
-
On my end, it works after I update both |
Beta Was this translation helpful? Give feedback.
-
Context providers can be a real pain in JS, especially when building / exporting a module. `const MyModuleWrapper = (props) => {
}` Hopefully, with some luck this might help someone. It may not....this issue can rear its head in many different ways! |
Beta Was this translation helpful? Give feedback.
-
I was able to fix this by double checking on the imports _app.tsx
posts.tsx
hope this helps |
Beta Was this translation helpful? Give feedback.
-
I am trying to use a simple useQuery Hook however it always produce the above error. I believe this is due to the new updates and changes in v3. How should I be using useQuery in V3 ?
Desktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions