Skip to main content
Version: 11.x

Type Alias: MutationLike<TRoot, TProcedure>

MutationLike<TRoot, TProcedure>: object

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>

Defined in

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