Can we Invalidate mutation so that we get updated data #6791
Unanswered
noumanaltaf
asked this question in
Q&A
Replies: 1 comment
-
you're updating a query, not a mutation. you can't update a mutation |
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.
-
Can we invalidate mutation query data for some specific key to get updated data on UI where useMutation data is used?
here is a code example to show what I want to achieve
` const queryClient = useQueryClient();
`
So in the above code, when I update 'updateQueryData' data. The component is not getting updated data in componentData prop.
Is there any way to get updated data to pass into componentData prop? I don't want to use component useState our here.
Beta Was this translation helpful? Give feedback.
All reactions