Prevent data from being undefined when re-fetching #793
Unanswered
paulintrognon
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Has anyone find a workaround to allow for this? Can't believe that this isn't documented anywhere, seems like a necessary feature. |
Beta Was this translation helpful? Give feedback.
1 reply
-
You might be wrong. useSWR by default caches the value until a new mutation. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I want
data
to stick to its old value when re-fetching, instead of going back to be undefined. I could not find a param to get this behavior. Did I miss something obvious or is it just not an available feature?Here's what I'd like:
Thanks all!
Beta Was this translation helpful? Give feedback.
All reactions