You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Expected:
isLoading
ref changes to reflect the active loading stateCurrent:
isLoading
is onlytrue
for the initial load, after which it's alwaysfalse
, even when revalidation is triggered manually, or automatically.Both using the returned
revalidate
function, as well as the automaticrevalidateOnFocus
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.
The text was updated successfully, but these errors were encountered: