Replies: 2 comments 2 replies
-
Hi, this is what you mean ?
|
Beta Was this translation helpful? Give feedback.
-
I was looking for something that could be leveraged to detect this by logic of the surrounding application from a function on the SWRConfig. The SWRConfig and general options allow for onSuccess: function, onError: function, but they don't have an onRevalidate: function to detect when a Promise cycle starts that ends with onSuccess or onError. If there was an onRevalidate: function option, then application could track the beginning and ending of revalidations and interpret as necessary. The effect I'm looking for is an overall loading spinner when some non-trivial (more than 0.5 or 1 second) loading/validating is happening. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder if there is a way to display a global revalidating status for all pending requests.
I'd like to show a little indicator in the app when transfers happen.
Beta Was this translation helpful? Give feedback.
All reactions