Why does the mutate method still resolve instead of reject when the request fails? #4165
Unanswered
lovetingyuan
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.
-
I want the mutate method to reject when the fetch api rejects, instead of returning the cached data. At least give me an option to support this feature.
I have a refresh button, I click it to call
mutate
method, but I can not know whether the api request is success or failed.Beta Was this translation helpful? Give feedback.
All reactions