Skip to content

[Beta] Disabled query has isLoading: true property #3584

Description

@maxsbelt

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions