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
Describe the bug
Disabled requests are executed after cache invalidation
To Reproduce
Steps to reproduce the behavior:
1 Use useQuery hook with the "items" key and pass {enabled: false} to the settings
2. Call queryCache.invalidateQueries("items")
3. The request will be fulfilled despite {enabled: false}
Expected behavior
The request will not be executed after the cache is invalidated, because in its settings it is {enabled: false}
Desktop (please complete the following information):
Describe the bug
Disabled requests are executed after cache invalidation
To Reproduce
Steps to reproduce the behavior:
1 Use useQuery hook with the
"items"
key and pass{enabled: false}
to the settings2. Call
queryCache.invalidateQueries("items")
3. The request will be fulfilled despite
{enabled: false}
Expected behavior
The request will not be executed after the cache is invalidated, because in its settings it is
{enabled: false}
Desktop (please complete the following information):
Additional context
Sandbox
The text was updated successfully, but these errors were encountered: