onSuccess, onError, onSettled all calling after mutation...
Hey there 👋 I've run into a strange issue where all my mutation callbacks are executing after a successful mutation call. I am using tRPC, but I don't expect that this should be related to the issue. Any help figuring this issue out is greatly appreciated.
Procedure definition:
Mutate function:
Mutation call w/callbacks:
Edit: I forgot to add the error message 🤦
This is an odd error to receive since the
useMutation()
hook is called inside a function component...
0 Replies