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
Sometimes if a request happens to fast, the loaders flash. Having loaders there for a minimum amount of time regardless of how fast the fetching happens is good for user experience because the user actually has time to see the loaders and tell that something is happening in the background.
My idea is to add an option to useSWR that specifies this minimum time like options.minTimeRequiredBeforeResolving
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
-
Sometimes if a request happens to fast, the loaders flash. Having loaders there for a minimum amount of time regardless of how fast the fetching happens is good for user experience because the user actually has time to see the loaders and tell that something is happening in the background.
My idea is to add an option to
useSWR
that specifies this minimum time likeoptions.minTimeRequiredBeforeResolving
Beta Was this translation helpful? Give feedback.
All reactions