Skip to content

useMutation without parallelism #6617

Answered by TkDodo
jGleitz asked this question in Ideas
Dec 30, 2023 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

TLDR: introduce an option parallel: boolean (or similar) to ensure that a mutation with the same key only has at most one executing instance at any time.

I think we have this now with mutation scopes: https://tanstack.com/query/latest/docs/framework/react/guides/mutations#mutation-scopes

Replies: 2 comments 4 replies

Comment options

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

@jGleitz
Comment options

@TkDodo
Comment options

@jGleitz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by TkDodo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants