onMutate
Notifies the mutation success
Mutation success usually implies data update, causing side effects on related queries. This callback is used as a trigger for re-fetching or revalidating data managed by queries. It invokes with the QueryEffect set in MutationKey.onQueryUpdate.
Parameters
sideEffects
The side effects of the mutation for related queries.