Deal with complex data with use Mutation? #2093
Unanswered
codernirmalnp
asked this question in
Q&A
Replies: 1 comment
-
sorry, I don't understand the question. you can update the queryCache as you like with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have data stored as global in react-query. I have fetched it using useQuery.I want to Updates from Mutation Responses which
will render in brower after submittion.I render category part of store in browser.
i want such like this and update my browser data
const mutation = useMutation(editTodo, {
onSuccess: data => queryClient.setQueryData(['todo', { id: 5 }], data),
})
How can i Acheive like this/
Beta Was this translation helpful? Give feedback.
All reactions