PageSourceSearch

https://trpc.io/assets/js/8e802356.632e9e7a.js

js trpc.io collected 2026-10-02 02:27:58 UTC 4,448 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([["35515"],{34771(e,r,t){t.r(r),t.d(r,{metadata:()=>n,default:()=>l,frontMatter:()=>s,contentTitle:()=>i,toc:()=>u,assets:()=>o});var n=JSON.parse('{"id":"typedoc/react-query/index/functions/getQueryKey","title":"Function: getQueryKey()","description":"getQueryKey\\\\(procedureOrRouter, ..._params): TRPCQueryKey","source":"@site/docs/typedoc/react-query/index/functions/getQueryKey.md","sourceDirName":"typedoc/react-query/index/functions","slug":"/typedoc/react-query/index/functions/getQueryKey","permalink":"/docs/typedoc/react-query/index/functions/getQueryKey","draft":false,"unlisted":false,"editUrl":"https://github.com/trpc/trpc/tree/main/www/docs/typedoc/react-query/index/functions/getQueryKey.md","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Function: getMutationKey()","permalink":"/docs/typedoc/react-query/index/functions/getMutationKey"},"next":{"title":"Function: httpBatchLink()","permalink":"/docs/typedoc/react-query/index/functions/httpBatchLink"}}'),c=t(27968),d=t(77334);let s={},i="Function: getQueryKey()",o={},u=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"See",id:"see",level:2}];function a(e){let r={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,d.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.header,{children:(0,c.jsx)(r.h1,{id:"function-getquerykey",children:"Function: getQueryKey()"})}),"\n",(0,c.jsxs)(r.blockquote,{children:["\n",(0,c.jsxs)(r.p,{children:[(0,c.jsx)(r.strong,{children:"getQueryKey"}),"<",(0,c.jsx)(r.code,{children:"TProcedureOrRouter"}),">(",(0,c.jsx)(r.code,{children:"procedureOrRouter"}),", ...",(0,c.jsx)(r.code,{children:"_params"}),"): ",(0,c.jsx)(r.code,{children:"TRPCQueryKey"})]}),"\n"]}),"\n",(0,c.jsxs)(r.p,{children:["Defined in: ",(0,c.jsx)(r.a,{href:"https://github.com/trpc/trpc/blob/f55eeb408e824a0443a78904644b7a5981644779/packages/react-query/src/internals/getQueryKey.ts#L107",children:"packages/react-query/src/internals/getQueryKey.ts:107"})]}),"\n",(0,c.jsx)(r.p,{children:"Method to extract the query key for a procedure"}),"\n",(0,c.jsx)(r.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,c.jsxs)(r.table,{children:[(0,c.jsx)(r.thead,{children:(0,c.jsx)(r.tr,{children:(0,c.jsx)(r.th,{children:"Type Parameter"})})}),(0,c.jsx)(r.tbody,{children:(0,c.jsx)(r.tr,{children:(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.code,{children:"TProcedureOrRouter"})," ",(0,c.jsx)(r.em,{children:"extends"})," ",(0,c.jsx)(r.code,{children:"ProcedureOrRouter"})]})})})]}),"\n",(0,c.jsx)(r.h2,{id:"parameters",children:"Parameters"}),"\n",(0,c.jsxs)(r.table,{children:[(0,c.jsx)(r.thead,{children:(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.th,{children:"Parameter"}),(0,c.jsx)(r.th,{children:"Type"}),(0,c.jsx)(r.th,{children:"Description"})]})}),(0,c.jsxs)(r.tbody,{children:[(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"procedureOrRouter"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"TProcedureOrRouter"})}),(0,c.jsx)(r.td,{children:"procedure or AnyRouter"})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsxs)(r.td,{children:["...",(0,c.jsx)(r.code,{children:"_params"})]}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.code,{children:"GetParams"}),"<",(0,c.jsx)(r.code,{children:"TProcedureOrRouter"}),">"]}),(0,c.jsx)(r.td,{children:"-"})]})]})]}),"\n",(0,c.jsx)(r.h2,{id:"returns",children:"Returns"}),"\n",(0,c.jsx)(r.p,{children:(0,c.jsx)(r.code,{children:"TRPCQueryKey"})}),"\n",(0,c.jsx)(r.h2,{id:"see",children:"See"}),"\n",(0,c.jsx)(r.p,{children:(0,c.jsx)(r.a,{href:"https://trpc.io/docs/v11/getQueryKey",children:"https://trpc.io/docs/v11/getQueryKey"})})]})}function l(e={}){let{wrapper:r}={...(0,d.R)(),...e.components};return r?(0,c.jsx)(r,{...e,children:(0,c.jsx)(a,{...e})}):a(e)}},77334(e,r,t){t.d(r,{R:()=>s,x:()=>i});var n=t(64700);let c={},d=n.createContext(c);function s(e){let r=n.useContext(d);return n.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:s(e.components),n.createElement(d.Provider,{value:r},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.