-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beta feedback issue: isLoading and isValidating are changing indefinitely like in a loop in 2.0.0-beta.3 #1974
Comments
Thanks for reporting. |
@promer94 here it is (I also updated the codesandbox example):
For some reason, when using swr.2.beta.3.issue.mov |
promer94
added a commit
to promer94/swr
that referenced
this issue
May 20, 2022
promer94
added a commit
to promer94/swr
that referenced
this issue
Jun 1, 2022
shuding
pushed a commit
that referenced
this issue
Jun 1, 2022
koba04
pushed a commit
to koba04/swr
that referenced
this issue
Jun 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
andisValidating
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
The text was updated successfully, but these errors were encountered: