Skip to main content
Version: 11.x

Interface: UseTRPCMutationOptions<TInput, TError, TOutput, TContext>

Extends

Type parameters

ParameterDefault
TInput-
TError-
TOutput-
TContextunknown

Properties

gcTime

optional gcTime: number

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:636

Inherited from

UseMutationOptions.gcTime


meta

optional meta: Record< string, unknown >

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:638

Inherited from

UseMutationOptions.meta


mutationFn

optional mutationFn: MutationFunction< TOutput, TInput >

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:627

Inherited from

UseMutationOptions.mutationFn


mutationKey

optional mutationKey: MutationKey

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:628

Inherited from

UseMutationOptions.mutationKey


networkMode

optional networkMode: NetworkMode

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:635

Inherited from

UseMutationOptions.networkMode


onError

optional onError: (error, variables, context) => unknown

Parameters

ParameterType
errorTError
variablesTInput
contextundefined | TContext

Returns

unknown

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:631

Inherited from

UseMutationOptions.onError


onMutate

optional onMutate: (variables) => undefined | TContext | Promise< undefined | TContext >

Parameters

ParameterType
variablesTInput

Returns

undefined | TContext | Promise< undefined | TContext >

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:629

Inherited from

UseMutationOptions.onMutate


onSettled

optional onSettled: (data, error, variables, context) => unknown

Parameters

ParameterType
dataundefined | TOutput
errornull | TError
variablesTInput
contextundefined | TContext

Returns

unknown

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:632

Inherited from

UseMutationOptions.onSettled


onSuccess

optional onSuccess: (data, variables, context) => unknown

Parameters

ParameterType
dataTOutput
variablesTInput
contextTContext

Returns

unknown

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:630

Inherited from

UseMutationOptions.onSuccess


retry

optional retry: RetryValue< TError >

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:633

Inherited from

UseMutationOptions.retry


retryDelay

optional retryDelay: RetryDelayValue< TError >

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:634

Inherited from

UseMutationOptions.retryDelay


throwOnError

optional throwOnError: boolean | (error) => boolean

Source

node_modules/.pnpm/@tanstack+query-core@5.25.0/node_modules/@tanstack/query-core/build/legacy/queryClient-pTTqDRDI.d.ts:641

Inherited from

UseMutationOptions.throwOnError


trpc

optional trpc: TRPCReactRequestOptions

tRPC-related options

Source

packages/react-query/src/shared/hooks/types.ts:55

Inherited from

TRPCUseQueryBaseOptions.trpc


Generated using TypeDoc and typedoc-plugin-markdown