Shouldn't failed mutation return isError equals true? #3788
Answered
by
TkDodo
vineetdigit
asked this question in
Q&A
-
When the mutation fails, the onError callback gets called as expected. But the value of 'isError' is 'false'. Shouldn't it be true for failed mutations?
Another related question is, at what point isLoading become true? Is it as soon as mutate() is called? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Jul 15, 2022
Replies: 1 comment
-
you're calling |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vineetdigit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you're calling
reset()
during render. Don't do that.