tridion-sites-extensions-api-docs

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

MutationOptions.onError property

This function will fire if the mutation encounters an error and will be passed the error.

Signature:

onError?: (error: TError, variables: TVariables) => Promise<void> | void;