I have a question about caching data when the value returned from a use query is an object. #5914
Unanswered
choisuhyeok1255
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a useQuery that gets profile data.
The profile data is an object and contains the address value where the profile image is stored.
You want to change the profile image via useMutate.
If the profile image change is successful, use useMutate's onSuccess to invalidate the query for the profile data.
We assume that the changed profile image will be available when we get the profile data again via useQuery.
If the address of the profile image stored on the server is fixed, then the image stored on the server can change, but the address value of the image returned will not change.
If the address of the image does not change even if I get the new profile data through useQuery, will the Image component that is using the image address not be rendered again?
Beta Was this translation helpful? Give feedback.
All reactions