Configure delay to avoid quick responses #1291
Unanswered
Emiliano-Bucci
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I was looking in the docs but i didn't find anything related to ti, or maybe I've missed it. Is there a way to set a minimum delay in which SWR will update the cache after a request? For example, if I make a request and I show a loader skeleton but the server answer is very quick, I could end up with a not-so-good UX, because things will appear and disappear very quickly. By setting a minimum delay, I'll make sure that I'll show the loader skeleton, at least, for a minimum amount of time.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions