-
Hello, As you can see in code I have axios post method, mutation`s onSettled and onSuccess options. *Token is regenerated, so that post method now wont work. (for those who will try this code) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
you are not returning the Promise from the
it must be Also, another thing I noticed: If you |
Beta Was this translation helpful? Give feedback.
you are not returning the Promise from the
mutationFn
:it must be
return axios.post(...)
working fork
Also, another thing I noticed: If you
.catch(error)
and just log it, you will transform errors into resolved promises, so you can never get to error state.