-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Promote isValidating to the global level of data and error #569
Conversation
Anything I can do to speed up a review? |
Bump |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me! It would be great to have a test for this I think.
Thank you @blackarctic!
@shuding Test has been added: useSWR › should broadcast isValidating Test on master Test on fix-is-validating |
f020c63
to
9f8fa3f
Compare
Bump |
2 similar comments
Bump |
Bump |
Thank you all for helping! |
This fixes #549 by caching and broadcasting
isValidating
in the same way thatdata
anderror
are cached and broadcasted.Before
After