Skip to content
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

Is loading #316

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Is loading #316

wants to merge 2 commits into from

Conversation

ivos
Copy link

@ivos ivos commented Oct 16, 2022

PR for #208

Comments:

  1. Some cases of setting isLoading = false are not covered by tests. They follow analogical lines for isValidating. I only found a test case for one of them (the second changed line) and I am not sure whether isLoading is relevant there - if so, pls let me know I will try to extend the test case. The other two isValidating = false however do not break any tests when commented out. All these three lines are is a separate (second) commit.
  2. If this gets merged, SWRV docs site would need to be updated too.

(Note: this is a second PR for #208. The first one (#284) has been created against the former next branch.)

@adamdehaven
Copy link
Member

Revisiting this now, it may make sense to add; swr has since added as well and thoroughly explains the differences between isValidating and isLoading: vercel/swr#1928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants