Interface: UseTRPCMutationOptions<TInput, TError, TOutput, TContext>
Extends
UseMutationOptions
<TOutput
,TError
,TInput
,TContext
>.TRPCUseQueryBaseOptions
Type Parameters
Type Parameter | Default type |
---|---|
TInput | - |
TError | - |
TOutput | - |
TContext | unknown |
Properties
gcTime?
optional
gcTime:number
Inherited from
UseMutationOptions.gcTime
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1125
meta?
optional
meta:Record
<string
,unknown
>
Inherited from
UseMutationOptions.meta
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1127
mutationFn?
optional
mutationFn:MutationFunction
<TOutput
,TInput
>
Inherited from
UseMutationOptions.mutationFn
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1116
mutationKey?
optional
mutationKey:MutationKey
Inherited from
UseMutationOptions.mutationKey
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1117
networkMode?
optional
networkMode:NetworkMode
Inherited from
UseMutationOptions.networkMode
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1124
onError()?
optional
onError: (error
,variables
,context
) =>unknown
Parameters
Parameter | Type |
---|---|
error | TError |
variables | TInput |
context | undefined | TContext |
Returns
unknown
Inherited from
UseMutationOptions.onError
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1120
onMutate()?
optional
onMutate: (variables
) =>undefined
|TContext
|Promise
<undefined
|TContext
>
Parameters
Parameter | Type |
---|---|
variables | TInput |
Returns
undefined
| TContext
| Promise
<undefined
| TContext
>
Inherited from
UseMutationOptions.onMutate
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1118
onSettled()?
optional
onSettled: (data
,error
,variables
,context
) =>unknown
Parameters
Parameter | Type |
---|---|
data | undefined | TOutput |
error | null | TError |
variables | TInput |
context | undefined | TContext |
Returns
unknown
Inherited from
UseMutationOptions.onSettled
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1121
onSuccess()?
optional
onSuccess: (data
,variables
,context
) =>unknown
Parameters
Parameter | Type |
---|---|
data | TOutput |
variables | TInput |
context | TContext |
Returns
unknown
Inherited from
UseMutationOptions.onSuccess
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1119
retry?
optional
retry:RetryValue
<TError
>
Inherited from
UseMutationOptions.retry
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1122
retryDelay?
optional
retryDelay:RetryDelayValue
<TError
>
Inherited from
UseMutationOptions.retryDelay
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1123
scope?
optional
scope:MutationScope
Inherited from
UseMutationOptions.scope
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1128
throwOnError?
optional
throwOnError:boolean
| (error
) =>boolean
Inherited from
UseMutationOptions.throwOnError
Defined in
node_modules/.pnpm/@tanstack+query-core@5.59.13/node_modules/@tanstack/query-core/build/legacy/hydration-mKPlgzt9.d.ts:1131
trpc?
optional
trpc:TRPCReactRequestOptions
tRPC-related options