-
I need to update the search params;
Does the mutate function accepts query params? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Sep 21, 2020
Replies: 1 comment 1 reply
-
The mutate function is not used to change the key, only the cached data. If you want to change the key you are using store part of it in a state and when you update your state it will be updated automatically and trigger a new fetch. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wassim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The mutate function is not used to change the key, only the cached data. If you want to change the key you are using store part of it in a state and when you update your state it will be updated automatically and trigger a new fetch.