MutateOptions
interface MutateOptions <TData = unknown, TError = unknown, TVariables = void, TContext = unknown> {
onError?: (
error: TError,
variables: TVariables,
context: TContext | undefined,
) => void;onSettled?: (
data: TData | undefined,
error: TError | null,
variables: TVariables,
context: TContext | undefined,
) => void;onSuccess?: (
}data: TData,
variables: TVariables,
context: TContext,
) => void;