Skip to content

What is the mutation key for? #5787

Closed Answered by TkDodo
jennings asked this question in Q&A
Jul 26, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

it's an optional key to be able to set default options for certain mutations only. In v5, we have a new useMutationState hook where you can grab state of multiple mutations depending on key. Same for useIsMutating

Replies: 1 comment 1 reply

Comment options

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

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