Home > @tridion-sites/extensions > MutationOptions > onMutate
This function will fire before the mutation function is fired and is passed the same variables the mutation function would receive.
Signature:
onMutate?: (variables: TVariables) => Promise<void> | void;