Skip to content
Discussion options

You must be logged in to vote

you cannot cancel mutations because mutations have side-effects on the server that cannot be stopped. For example, what would happen if you have a mutation that sends an email, and you would "cancel" the network request. How would you stop the email from being sent on the server? Or the database entry from being created?

If you have one mutation that fires multiple requests and you want to perform checks in between each one and only call them conditionally, you should be able to do that. But once a mutation request has been sent, it cannot be cancelled.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@charliematters
Comment options

@TkDodo
Comment options

@charliematters
Comment options

Answer selected by charliematters
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