How to update previously fetched data (cache) after a PUT request. #256
|
I have a form component to update an organization data, I first fetch the org data the data returned is used to fill out the organization form as initial values to be updated. |
Answered by
cherniavskii
Mar 17, 2020
Replies: 1 comment
|
Yes, you can use |
0 replies
Answer selected by
tannerlinsley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use
queryCache.setQueryData- see https://github.com/tannerlinsley/react-query#query-updates-from-mutations