Aller au contenu principal
Version : 11.x

Function: getMutationKey()

getMutationKey<TProcedure>(procedure): TRPCMutationKey

Defined in: packages/react-query/src/internals/getQueryKey.ts:132

Method to extract the mutation key for a procedure

Type Parameters​

Type Parameter
TProcedure extends DecoratedMutation<any>

Parameters​

ParameterTypeDescription
procedureTProcedureprocedure

Returns​

TRPCMutationKey

See​

https://trpc.io/docs/v11/getQueryKey#mutations