What would be a good approach mutating multiple caches on a shared item update? #6563
Answered
by
TkDodo
sveta-slepner
asked this question in
Q&A
-
Let's say that i'm showing two lists of books in a page.
And now I need to edit/remove a book that exists in both lists and mutate the data. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Dec 23, 2023
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sveta-slepner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
queryClient.setQueriesData(['books]', (prev => ...))
can do it