-
v3 add a Mutation Cache. In my use case I want my queries and mutations united into one place so I can get the latest data. Is the best practice to define an onSuccess of mutation to set query data?
Then to extract the data
This way I don't need to deal with the MutationCache |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Dec 15, 2020
Replies: 1 comment
-
Yes. You only have to deal with queryClient, but it works the same as with queryCache before. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
danactive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. You only have to deal with queryClient, but it works the same as with queryCache before.