Interface: MutationObserverOptions<TData, TError, TVariables, TOnMutateResult>#
Defined in: packages/query-core/src/types.ts:1145
Extends#
MutationOptions<TData,TError,TVariables,TOnMutateResult>
Type Parameters#
TData#
TData = unknown
TError#
TError = DefaultError
TVariables#
TVariables = void
TOnMutateResult#
TOnMutateResult = unknown
Properties#
_defaulted?#
optional _defaulted: boolean;
Defined in: packages/query-core/src/types.ts:1140
Inherited from#
gcTime?#
optional gcTime: number;
Defined in: packages/query-core/src/types.ts:1139
Inherited from#
meta?#
optional meta: Record<string, unknown>;
Defined in: packages/query-core/src/types.ts:1141
Inherited from#
mutationFn?#
optional mutationFn: MutationFunction<TData, TVariables>;
Defined in: packages/query-core/src/types.ts:1111
Inherited from#
mutationKey?#
optional mutationKey: readonly unknown[];
Defined in: packages/query-core/src/types.ts:1112
Inherited from#
networkMode?#
optional networkMode: NetworkMode;
Defined in: packages/query-core/src/types.ts:1138
Inherited from#
onError()?#
optional onError: (error, variables, onMutateResult, context) => unknown;
Defined in: packages/query-core/src/types.ts:1123
Parameters#
error#
TError
variables#
TVariables
onMutateResult#
TOnMutateResult | undefined
context#
Returns#
unknown
Inherited from#
onMutate()?#
optional onMutate: (variables, context) => TOnMutateResult | Promise<TOnMutateResult>;
Defined in: packages/query-core/src/types.ts:1113
Parameters#
variables#
TVariables
context#
Returns#
TOnMutateResult | Promise<TOnMutateResult>
Inherited from#
onSettled()?#
optional onSettled: (data, error, variables, onMutateResult, context) => unknown;
Defined in: packages/query-core/src/types.ts:1129
Parameters#
data#
TData | undefined
error#
TError | null
variables#
TVariables
onMutateResult#
TOnMutateResult | undefined
context#
Returns#
unknown
Inherited from#
onSuccess()?#
optional onSuccess: (data, variables, onMutateResult, context) => unknown;
Defined in: packages/query-core/src/types.ts:1117
Parameters#
data#
TData
variables#
TVariables
onMutateResult#
TOnMutateResult
context#
Returns#
unknown
Inherited from#
retry?#
optional retry: RetryValue<TError>;
Defined in: packages/query-core/src/types.ts:1136
Inherited from#
retryDelay?#
optional retryDelay: RetryDelayValue<TError>;
Defined in: packages/query-core/src/types.ts:1137
Inherited from#
scope?#
optional scope: MutationScope;
Defined in: packages/query-core/src/types.ts:1142
Inherited from#
throwOnError?#
optional throwOnError: boolean | (error) => boolean;
Defined in: packages/query-core/src/types.ts:1151