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.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1134
meta?
optional
meta:Record
<string
,unknown
>
Inherited from
UseMutationOptions.meta
Defined in
node_modules/.pnpm/@tanstack+query-core@5.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1136
mutationFn?
optional
mutationFn:MutationFunction
<TOutput
,TInput
>
Inherited from
UseMutationOptions.mutationFn
Defined in
node_modules/.pnpm/@tanstack+query-core@5.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1125
mutationKey?
optional
mutationKey:MutationKey
Inherited from
UseMutationOptions.mutationKey
Defined in
node_modules/.pnpm/@tanstack+query-core@5.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1126
networkMode?
optional
networkMode:NetworkMode
Inherited from
UseMutationOptions.networkMode
Defined in
node_modules/.pnpm/@tanstack+query-core@5.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1133
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.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1129
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.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1127
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.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1130
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.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1128
retry?
optional
retry:RetryValue
<TError
>
Inherited from
UseMutationOptions.retry
Defined in
node_modules/.pnpm/@tanstack+query-core@5.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1131
retryDelay?
optional
retryDelay:RetryDelayValue
<TError
>
Inherited from
UseMutationOptions.retryDelay
Defined in
node_modules/.pnpm/@tanstack+query-core@5.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1132
scope?
optional
scope:MutationScope
Inherited from
UseMutationOptions.scope
Defined in
node_modules/.pnpm/@tanstack+query-core@5.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1137
throwOnError?
optional
throwOnError:boolean
| (error
) =>boolean
Inherited from
UseMutationOptions.throwOnError
Defined in
node_modules/.pnpm/@tanstack+query-core@5.62.8/node_modules/@tanstack/query-core/build/legacy/hydration-DiTAi-4H.d.ts:1140
trpc?
optional
trpc:TRPCReactRequestOptions
tRPC-related options