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
Is in SWR fetaure that can show pending requests? It would be nice to have something like that for displaying pending requests with some circle loader when you load data from more endpoints with some hook, for example useSWRCount. I am thinking about this, because we have somethink like that in existing app with normall fetch method and redux, which stores pending requests (logic in api handler dealing with this).
Maybe it doesnt make much sense when using cache, because lots of request will be instant. This is why I am opening this discussion. Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is in SWR fetaure that can show pending requests? It would be nice to have something like that for displaying pending requests with some circle loader when you load data from more endpoints with some hook, for example
useSWRCount
. I am thinking about this, because we have somethink like that in existing app with normall fetch method and redux, which stores pending requests (logic in api handler dealing with this).Maybe it doesnt make much sense when using cache, because lots of request will be instant. This is why I am opening this discussion. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions