Skip to content
Discussion options

You must be logged in to vote

am I reading this correctly that the above code is your onError handler for useMutation ? If so, I don't quite understand why you would throw inside that error handler? That shouldn't be necessary - react-query knows about your error already, you can show the notification in onError, and you would still see the error + error status in the mutation...

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
11 replies
@TkDodo
Comment options

@ryanmk54
Comment options

@TkDodo
Comment options

@toniton
Comment options

@toniton
Comment options

Answer selected by ryanmk54
Comment options

You must be logged in to vote
1 reply
@ryanmk54
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants