-
Hello I am learning nextjs and trying to use react-query to fetch data. I followed the documentation to fetch posts from jsonplaceholder
This is my client provider component
I am just trying to load my page and console logging the data from useQuery. The browser console is continuously logging the data and making thr browser hang. Everytime I had to kill the chome process. I am quite new to react-query. Any help or pointers much appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The code apparently looks fine. It would be helpful if you could create a reproduction of this issue on stackblitz or some other platform. |
Beta Was this translation helpful? Give feedback.
-
Why are you doing |
Beta Was this translation helpful? Give feedback.
-
@pdomala check this example code - https://github.com/2manoj1/poc-nextjs-13-react-query
|
Beta Was this translation helpful? Give feedback.
@pdomala check this example code - https://github.com/2manoj1/poc-nextjs-13-react-query