Which method should I use instead of onSuccess #5710
-
this is example code, const mutation = useMutation({
mutationFn: postTodo,
onSuccess: () => {
alert("fetch success")
},
}) |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Jul 14, 2023
Replies: 1 comment 1 reply
-
callbacks of mutations are NOT deprecated and can still be used. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TkDodo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
callbacks of mutations are NOT deprecated and can still be used.