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):
- OS: Windows 10
- Browser Chrome 83
- Version 2.4.2
Additional context
Sandbox