-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[Beta] Disabled query has isLoading: true property #3584
Copy link
Copy link
Closed
Description
Describe the bug
In react-query@beta version has strange behaviour. By default query that has enabled: false option has isLoading: true property (see code sandbox for details). In stable release react-query@^3 is has isLoading: false. I didn't find any notes about this update in change logs so it seems like a bug.
Your minimal, reproducible example
https://codesandbox.io/s/eager-bell-epuvfi?file=/src/App.js
Steps to reproduce
Define simple query with enabled: false option
Expected behavior
Query should have isLoading: false
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Any
react-query version
4.0.0-beta.7
TypeScript version
Not relevant
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels