Skip to content
Discussion options

You must be logged in to vote

You can use it, I'm not sure if I changed the behaviour slightly with v5, because what you are describing will be a first class pattern in v5:

https://tanstack.com/query/v5/docs/react/guides/optimistic-updates#via-the-ui

I just realised that I forgot to update the v5 reference docs to mention variables. If you want, you can contribute that to the alpha branch.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mathieu-anderson
Comment options

@TkDodo
Comment options

@mathieu-anderson
Comment options

Answer selected by mathieu-anderson
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