-
|
Searching online, I found this and I know I can use But someone is asking here,
I have the same question, but I'm not sure whether The official documentation doesn't state explicitly that it cannot be used with a GET request,
So, can I use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
sure you can, but difference are that state of mutations is not shared across instances, and there is no automatic / smart refetching. |
Beta Was this translation helpful? Give feedback.
-
|
@TkDodo, Can we please ask for a separate function for get operations, say useFetching or useAction, to avoid confusion about whether useMutation can only be used to mutate data? |
Beta Was this translation helpful? Give feedback.
sure you can, but difference are that state of mutations is not shared across instances, and there is no automatic / smart refetching.