tridion-sites-extensions-api-docs

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

MutationOptions.onSettled property

This function will fire when the mutation is either successfully fetched or encounters an error and be passed either the data or error.

Signature:

onSettled?: (data: TData | undefined, error: TError | null, variables: TVariables) => Promise<void> | void;