Home > @tridion-sites/extensions > MutationOptions > onSettled
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;