Skip to content

Beta feedback issue: isLoading and isValidating are changing indefinitely like in a loop in 2.0.0-beta.3 #1974

@mislavmiocevic

Description

@mislavmiocevic

DISCLAIMER

I am using beta version, and I want to give an early feedback. Probably you will encounter the issue but I wanted to help a bit. Sorry but I do not have a time atm to dig more. Ignore this issue if you do not take bug reports for beta versions.
And thanks for SWR 2 :)

Bug report

Description / Observed Behavior

isLoading and isValidating is updating all the time from true to false and again in a loop even if there is no revalidation or mutation.

Expected Behavior

If there is no mutation or revalidation, isLoading and isValidating props should NOT transition from true to false and again in a loop.

Additional Context

It is working in SWR version: 2.0.0-beta.1
It is NOT working in SWR version: 2.0.0-beta.3

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