onMutate

abstract fun onMutate(effect: Effect): Job

Notifies the mutation success

Mutation success usually implies data update, causing side effects on related queries and subscriptions. This callback is used as a trigger for re-fetching or revalidating data managed by queries. It invokes with the Effect set in MutationKey.onMutateEffect.

Parameters

effect

The side effects of the mutation for related queries and subscriptions.