Replies: 1 comment
-
Hello, I have the same problem. Have you found any workaround with this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i would like to build a loading indicator for SWR.
isValidating is not very useful in this case.
So i think i could make use of the onLoadingSlow event
But i find that onLoadingSlow will only be triggered when no cache. This kind of behavior is different from other config callback options.
Could we pass the current data to onLoadingSlow
onLoadingSlow(data, key, config)
instead of checking it. So this callback function will always be triggered if it is a slow revalidation. I feel this is more flexible then current behaviorBeta Was this translation helpful? Give feedback.
All reactions