Simple Example does not work
Simple example: https://tanstack.com/query/v4/docs/examples/react/simple
I'm using typescript and redux. I had to make a couple changes, but here's the file:
React Query Simple Example | TanStack Query Docs
An example showing how to implement Simple in React Query
4 Replies
like-goldOP•4y ago
Here are the error messages

like-goldOP•4y ago
- "Invalid hook call. Hooks can only be called inside of the body of a function component."
- "Cannot read properties of null (reading 'useRef')"
- "The above error occurred in the <ReactQueryDevtools> component:"
like-goldOP•4y ago
Project directory

like-goldOP•4y ago
All of my react versions match (via
npm list --pattern react):
For whatever reason, <ReactQueryDevtools initialIsOpen /> was breaking everything. Removing just this fixed it. Would still like to know why