Adding QueryClientProvider to react project giving error #3702
Unanswered
kssingh600
asked this question in
Q&A
Replies: 2 comments 3 replies
-
can you share the repo? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here is the repo link: https://github.com/kssingh600/react-query-demo/tree/master Thanks |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have recently created a react app and then included the QueryClientProvider to the index.js. However on server start, localhost:3000 is showing blank screen and when I checked the console I got an error stating Uncaught TypeError: Cannot read properties of null (reading 'useEffect')
Here are the contents of index.js file:
And here is the Console error :
I am using the following versions of react and react-query:
Please help me understand the issue.
P.S. I have tried this in two different PCs and is facing the same issue in both
Thanks
Beta Was this translation helpful? Give feedback.
All reactions