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