What is the benefit of useMutation? #2447
Answered
by
TkDodo
devhyunjae
asked this question in
Q&A
-
What is the benefit of useMutation comparing to the classic react-way? example. useMutation
vs plain react
|
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Jul 9, 2021
Replies: 1 comment 1 reply
-
You can track the state of the mutation, like loading and error. This allows you to e.g. disable the button that triggers the mutation while the mutation is running - a very common scenario |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
devhyunjae
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can track the state of the mutation, like loading and error. This allows you to e.g. disable the button that triggers the mutation while the mutation is running - a very common scenario