mutation.isSuccess not working
I have a submit function that when called, I want to do a mutation. If a successfull mutation, I want to do some action and if error I want to do a different action.
My code currently is not catching the
mutation.isSuccess
even though there are no errors.
1 Reply
The
if (!data) return
would just catch if you fetched a table that didn't have any data in it yet for example