Interface: UseTRPCMutationOptions<TInput, TError, TOutput, TContext>
Extends
UseMutationOptions<TOutput,TError,TInput,TContext>.TRPCUseQueryBaseOptions
Type parameters
| Parameter | Default |
|---|---|
TInput | - |
TError | - |
TOutput | - |
TContext | unknown |
Properties
gcTime
optionalgcTime:number
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1064
Inherited from
UseMutationOptions.gcTime
meta
optionalmeta:Record<string,unknown>
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1066
Inherited from
UseMutationOptions.meta
mutationFn
optionalmutationFn:MutationFunction<TOutput,TInput>
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1055
Inherited from
UseMutationOptions.mutationFn
mutationKey
optionalmutationKey:MutationKey
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1056
Inherited from
UseMutationOptions.mutationKey
networkMode
optionalnetworkMode:NetworkMode
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1063
Inherited from
UseMutationOptions.networkMode
onError
optionalonError: (error,variables,context) =>unknown
Parameters
| Parameter | Type |
|---|---|
error | TError |
variables | TInput |
context | undefined | TContext |
Returns
unknown
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1059
Inherited from
UseMutationOptions.onError
onMutate
optionalonMutate: (variables) =>undefined|TContext|Promise<undefined|TContext>
Parameters
| Parameter | Type |
|---|---|
variables | TInput |
Returns
undefined | TContext | Promise< undefined | TContext >
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1057
Inherited from
UseMutationOptions.onMutate
onSettled
optionalonSettled: (data,error,variables,context) =>unknown
Parameters
| Parameter | Type |
|---|---|
data | undefined | TOutput |
error | null | TError |
variables | TInput |
context | undefined | TContext |
Returns
unknown
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1060
Inherited from
UseMutationOptions.onSettled
onSuccess
optionalonSuccess: (data,variables,context) =>unknown
Parameters
| Parameter | Type |
|---|---|
data | TOutput |
variables | TInput |
context | TContext |
Returns
unknown
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1058
Inherited from
UseMutationOptions.onSuccess
retry
optionalretry:RetryValue<TError>
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1061
Inherited from
UseMutationOptions.retry
retryDelay
optionalretryDelay:RetryDelayValue<TError>
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1062
Inherited from
UseMutationOptions.retryDelay
scope
optionalscope:MutationScope
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1067
Inherited from
UseMutationOptions.scope
throwOnError
optionalthrowOnError:boolean| (error) =>boolean
Source
node_modules/.pnpm/@tanstack+query-core@5.45.0/node_modules/@tanstack/query-core/build/legacy/hydration-BZ2M_xzi.d.ts:1070
Inherited from
UseMutationOptions.throwOnError
trpc
optionaltrpc:TRPCReactRequestOptions
tRPC-related options
Source
packages/react-query/src/shared/hooks/types.ts:55
Inherited from
Generated using TypeDoc and typedoc-plugin-markdown