-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught runtime error when running @tanstack/react-query #6559
Comments
I mean, how much better can an error message be? Please read it. There's even a link in there to the docs, did you go there?? |
Sorry for creating the issue here but i indeed went to the docs but I guess its above my knowledge level right now, I'm fairly new to react and query. |
@TkDodo so do i have to run the codemod command? |
You only need the codemods when upgrading from v4. Please start by reading the docs and maybe use TypeScript. The correct syntax is:
|
Okay so the codemods are used to mass-convert the code if someone is using them on a bigger scale? |
The error got solved, thanks a lot! |
Describe the bug
I am using React.js to run a simple React Query code but I am facing an error. The code:
The code above is using the public catfact api to fetch the 'fact' data and display it on screen.
The error:
Your minimal, reproducible example
any react app involving react query
Steps to reproduce
Expected behavior
Data being fetched and displayed
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows, Linux
Tanstack Query adapter
react-query
TanStack Query version
v5.14.1
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: