getQueryKey()
Method to extract the query key for a procedure
Link
https://trpc.io/docs/getQueryKey
Signature
ts
getQueryKey<TProcedureOrRouter, TPath, TFlags>(..._params: GetParams<TProcedureOrRouter, TPath, TFlags>): QueryKey;
ts
getQueryKey<TProcedureOrRouter, TPath, TFlags>(..._params: GetParams<TProcedureOrRouter, TPath, TFlags>): QueryKey;
Type parameters
TProcedureOrRouter
extendsAnyRouter
|AnyQueryProcedure
|AnyMutationProcedure
TPath
extendsstring
TFlags
Parameters
Name | Type |
---|---|
..._params | GetParams <TProcedureOrRouter , TPath , TFlags > |
Returns
QueryKey
Defined in: packages/react-query/src/internals/getQueryKey.ts:82