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

isLoading not changing when revalidating #11

Open
ZeroThe2nd opened this issue Feb 20, 2023 · 0 comments
Open

isLoading not changing when revalidating #11

ZeroThe2nd opened this issue Feb 20, 2023 · 0 comments

Comments

@ZeroThe2nd
Copy link

Expected:

isLoading ref changes to reflect the active loading state

Current:

isLoading is only true for the initial load, after which it's always false, even when revalidation is triggered manually, or automatically.

Both using the returned revalidate function, as well as the automatic revalidateOnFocus don't change the loading state when they are triggered.

Example:

I've created a StackBlitz which logs whatever happens to the screen. Note that the "Changed Loading" only appears once, and won't show again even if (manual) revalidation is triggered.

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

No branches or pull requests

1 participant