Aller au contenu principal
Version : 11.x

Type Alias: MutationLike<TRoot, TProcedure>

MutationLike<TRoot, TProcedure>: object

Defined in: packages/react-query/src/shared/polymorphism/mutationLike.ts:15

Use to describe a mutation route which matches a given mutation procedure's interface

Type Parameters​

Type Parameter
TRoot extends AnyRootTypes
TProcedure extends AnyProcedure

Type declaration​

useMutation()​

useMutation: (opts?) => InferMutationResult<TRoot, TProcedure>

Parameters​

ParameterType
opts?InferMutationOptions<TRoot, TProcedure>

Returns​

InferMutationResult<TRoot, TProcedure>