tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > MutationOptions > onMutate

MutationOptions.onMutate property

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;