Describe the bug
I have a query that has the enabled option as false, but when a refetchQueries() is executed, the query with enabled false still gets called.
Your minimal, reproducible example
https://codesandbox.io/s/bold-wood-ds6f12?file=/src/index.js
Steps to reproduce
- Create a useQuery with enabled option as false
- Execute
refetchQueries somewhere
- See query gets executed
Expected behavior
Query not get executed per the docs...

How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- OS: [iOS, Android]
- Browser: [Chrome]
react-query version
3.34.6
TypeScript version
No response
Additional context
No response
Describe the bug
I have a query that has the
enabledoption as false, but when arefetchQueries()is executed, the query withenabledfalse still gets called.Your minimal, reproducible example
https://codesandbox.io/s/bold-wood-ds6f12?file=/src/index.js
Steps to reproduce
refetchQueriessomewhereExpected behavior
Query not get executed per the docs...

How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
react-query version
3.34.6
TypeScript version
No response
Additional context
No response