You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the complete button is pressed, the query is disabled and getTodo is not executed when it should be fetching data again in the background. (Check out codesandbox!)
The text was updated successfully, but these errors were encountered:
yanachuwan9sm
changed the title
When invalidating useSuspenseQuery queries with invalidateQueries, the refetch process does not run.
[react-query][Bug?]When invalidating useSuspenseQuery queries with invalidateQueries, the refetch process does not run.
Jun 13, 2024
Describe the bug
When the complete button is pressed, the query is disabled and getTodo is not executed when it should be fetching data again in the background. (Check out codesandbox!)
Your minimal, reproducible example
codesandbox
Steps to reproduce
1 Click on the complete button
2 Please check the console in DevTools
Expected behavior
I want the following console log to be displayed when the complete button is pressed.
How often does this bug happen?
Every time
Screenshots or Videos
2024-06-13.11.53.21.mov
Platform
N/A
Tanstack Query adapter
react-query
TanStack Query version
v5.28.6
TypeScript version
v4.4.4
Additional context
No response
The text was updated successfully, but these errors were encountered: