Skip to content
Discussion options

You must be logged in to vote

I'm gonna close this issue. directly editing the variables inside a onMutate is regarded as an anti-pattern. the fact it "works" is an implementation detail, not a part of the API contract of TanStack Query.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as low quality.

@DogPawHat
Comment options

Comment options

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