Skip to main content
Version: 11.x

Function: getQueryKey()

getQueryKey<TRoot, TProcedureOrRouter, TFlags>(..._params): TRPCQueryKey

Method to extract the query key for a procedure

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

Type parameters

Parameter
TRoot extends {ctx: any; errorShape: any; meta: any; transformer: any;}
TProcedureOrRouter extends AnyMutationProcedure | AnyQueryProcedure | AnyRouter
TFlags

Parameters

ParameterType
..._paramsGetParams< TRoot, TProcedureOrRouter, TFlags >

Returns

TRPCQueryKey

Source

packages/react-query/src/internals/getQueryKey.ts:127


Generated using TypeDoc and typedoc-plugin-markdown