Skip to content
Discussion options

You must be logged in to vote

you can use onMutate to run anything you want before the mutation starts, and the usual onSuccess / onError / onSettled for things that should happen after the mutation. Promises returned from those functions are awaited.

Replies: 1 comment 1 reply

Comment options

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

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