Skip to main content
Version: 10.x

Function: getQueryKey()

getQueryKey<TProcedureOrRouter, TPath, TFlags>(..._params): QueryKey

Method to extract the query key for a procedure

https://trpc.io/docs/getQueryKey

Type parameters

Parameter
TProcedureOrRouter extends AnyRouter | AnyQueryProcedure | AnyMutationProcedure
TPath extends string
TFlags

Parameters

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

Returns

QueryKey

Source

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


Generated using TypeDoc and typedoc-plugin-markdown