useMutation (onMutate) is missing.
Hello.. I was using useMutation and created a reusable function
as you can see on the left hand side of the image. Now, when I use that function on the right hand side of the image I haven't get any onMutate options. What did I miss here? Thank you.
2 Replies
ratty-blush•3y ago
onMutate only exists as a callback on useMutation, not on mutate itself
optimistic-goldOP•3y ago
Ohh ok... Got it. Thank you for clarification. :reactquery: