When using axios example provided by the repo, data becomes undefined after running bound mutate #1053
Unanswered
serendipity1004
asked this question in
Q&A
Replies: 1 comment
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.
-
I am running a bound mutate and using the axios example in this repo. I would expect the data to maintain previous result until request has finished but it seems to turn undefined and returns the network data. How can I achieve optimistic response like behaviour using SWR?
Beta Was this translation helpful? Give feedback.
All reactions