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