Rerender component on mutation cache changes #4348
Answered
by
TkDodo
spacepolice10
asked this question in
Q&A
-
Hey there, Is it possible to update mutation cache inside queryClient and make these changes affect the component state? The idea:
Probably changes inside mutation cache never affect component's state. Is there way to see updated mutation cache immediately after I have changed it manually? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Oct 22, 2022
Replies: 1 comment
-
mutations are meant to update data only. If you want to display a list of uploaded files, it sounds like you'd want a query that you can then invalidate after a mutation. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
spacepolice10
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mutations are meant to update data only. If you want to display a list of uploaded files, it sounds like you'd want a query that you can then invalidate after a mutation.