[{"data":1,"prerenderedAt":2275},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fplugin-react-query\u002Foptions":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":2274,"source":4},"extensions\u002Fkubb-labs\u002Fplugin-react-query\u002Foptions.md",{},"Options",{"type":8,"value":9,"toc":2237},"minimark",[10,25,30,367,371,374,380,411,452,454,472,509,513,516,554,558,565,603,607,618,656,660,663,699,703,720,757,761,772,808,882,897,901,910,946,948,961,998,1000,1018,1055,1059,1062,1100,1114,1118,1126,1163,1166,1185,1222,1244,1304,1310,1391,1393,1409,1446,1449,1452,1489,1493,1499,1535,1538,1556,1592,1598,1668,1671,1689,1718,1722,1729,1762,1766,1769,1806,1808,1838,1875,1877,1901,1930],[11,12,13,14,18,19,24],"p",{},"Pass these options to ",[15,16,17],"code",{},"pluginReactQuery()",". Shared options link to ",[20,21,23],"a",{"href":22},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options","Shared plugin options"," for details.",[26,27,29],"h2",{"id":28},"options-overview","Options overview",[31,32,33,49],"table",{},[34,35,36],"thead",{},[37,38,39,43,46],"tr",{},[40,41,42],"th",{},"Option",[40,44,45],{},"Purpose",[40,47,48],{},"Default",[50,51,52,88,110,126,148,168,186,208,226,246,261,282,297,315,332,350],"tbody",{},[37,53,54,63,83],{},[55,56,57],"td",{},[20,58,60],{"href":59},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output",[15,61,62],{},"output",[55,64,65,66,69,70,69,73,69,76,69,79,82],{},"Where files are written: ",[15,67,68],{},"path",", ",[15,71,72],{},"mode",[15,74,75],{},"barrel",[15,77,78],{},"banner",[15,80,81],{},"footer",".",[55,84,85],{},[15,86,87],{},"{ path: 'hooks', barrel: { type: 'named' } }",[37,89,90,98,107],{},[55,91,92],{},[20,93,95],{"href":94},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#group",[15,96,97],{},"group",[55,99,100,101,69,104,82],{},"Split output by tag or path: ",[15,102,103],{},"type",[15,105,106],{},"name",[55,108,109],{},"None",[37,111,112,120,123],{},[55,113,114],{},[20,115,117],{"href":116},"#client",[15,118,119],{},"client",[55,121,122],{},"Which registered client plugin the hooks call.",[55,124,125],{},"Auto-detected",[37,127,128,136,143],{},[55,129,130],{},[20,131,133],{"href":132},"#infinite",[15,134,135],{},"infinite",[55,137,138,139,142],{},"Generate ",[15,140,141],{},"useInfiniteQuery"," hooks for pagination.",[55,144,145],{},[15,146,147],{},"false",[37,149,150,158,164],{},[55,151,152],{},[20,153,155],{"href":154},"#suspense",[15,156,157],{},"suspense",[55,159,138,160,163],{},[15,161,162],{},"useSuspenseQuery"," hooks.",[55,165,166],{},[15,167,147],{},[37,169,170,178,181],{},[55,171,172],{},[20,173,175],{"href":174},"#query",[15,176,177],{},"query",[55,179,180],{},"Configure the query hooks.",[55,182,183],{},[15,184,185],{},"{ methods: ['GET', 'QUERY'], importPath: '@tanstack\u002Freact-query' }",[37,187,188,196,202],{},[55,189,190],{},[20,191,193],{"href":192},"#querykey",[15,194,195],{},"queryKey",[55,197,198,199,201],{},"Build the ",[15,200,195],{}," for each query hook.",[55,203,204,205],{},"Exported ",[15,206,207],{},"queryKeyTransformer",[37,209,210,218,221],{},[55,211,212],{},[20,213,215],{"href":214},"#mutation",[15,216,217],{},"mutation",[55,219,220],{},"Configure the mutation hooks.",[55,222,223],{},[15,224,225],{},"{ methods: ['POST', 'PUT', 'PATCH', 'DELETE'], importPath: '@tanstack\u002Freact-query' }",[37,227,228,236,241],{},[55,229,230],{},[20,231,233],{"href":232},"#mutationkey",[15,234,235],{},"mutationKey",[55,237,198,238,240],{},[15,239,235],{}," for each mutation hook.",[55,242,204,243],{},[15,244,245],{},"mutationKeyTransformer",[37,247,248,256,259],{},[55,249,250],{},[20,251,253],{"href":252},"#customoptions",[15,254,255],{},"customOptions",[55,257,258],{},"Route every hook through your own options function.",[55,260,109],{},[37,262,263,271,278],{},[55,264,265],{},[20,266,268],{"href":267},"#hooks",[15,269,270],{},"hooks",[55,272,273,274,277],{},"Emit ",[15,275,276],{},"use*"," hook functions on top of the factories.",[55,279,280],{},[15,281,147],{},[37,283,284,292,295],{},[55,285,286],{},[20,287,289],{"href":288},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#include",[15,290,291],{},"include",[55,293,294],{},"Keep only operations that match.",[55,296,109],{},[37,298,299,307,310],{},[55,300,301],{},[20,302,304],{"href":303},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#exclude",[15,305,306],{},"exclude",[55,308,309],{},"Skip operations that match.",[55,311,312],{},[15,313,314],{},"[]",[37,316,317,325,328],{},[55,318,319],{},[20,320,322],{"href":321},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#override",[15,323,324],{},"override",[55,326,327],{},"Apply different options per pattern.",[55,329,330],{},[15,331,314],{},[37,333,334,342,345],{},[55,335,336],{},[20,337,339],{"href":338},"#resolver",[15,340,341],{},"resolver",[55,343,344],{},"Customize generated names and file paths.",[55,346,347],{},[15,348,349],{},"resolverReactQuery",[37,351,352,360,363],{},[55,353,354],{},[20,355,357],{"href":356},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#macros",[15,358,359],{},"macros",[55,361,362],{},"Rewrite AST nodes before printing.",[55,364,365],{},[15,366,314],{},[26,368,370],{"id":369},"option-details","Option details",[372,373,119],"h3",{"id":119},[11,375,376,377,379],{},"Selects which registered client plugin the hooks call. A single registered client is auto-detected. Set ",[15,378,119],{}," when several are registered.",[31,381,382,390],{},[34,383,384],{},[37,385,386,388],{},[40,387],{},[40,389],{},[50,391,392,402],{},[37,393,394,397],{},[55,395,396],{},"Type",[55,398,399],{},[15,400,401],{},"'fetch' | 'axios' | 'client'",[37,403,404,407],{},[55,405,406],{},"Required",[55,408,409],{},[15,410,147],{},[412,413,414,425,434],"field-group",{},[415,416,418,419,82],"field",{"name":417},"'fetch'","Calls the operations generated by ",[20,420,422],{"href":421},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-fetch",[15,423,424],{},"@kubb\u002Fplugin-fetch",[415,426,418,428,82],{"name":427},"'axios'",[20,429,431],{"href":430},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-axios",[15,432,433],{},"@kubb\u002Fplugin-axios",[415,435,418,437,443,444,447,448,451],{"name":436},"'client'",[20,438,440],{"href":439},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client",[15,441,442],{},"@kubb\u002Fplugin-client",". Your client module must also export the ",[15,445,446],{},"RequestConfig"," and ",[15,449,450],{},"ResponseErrorConfig"," types.",[372,453,135],{"id":135},[11,455,456,457,447,460,462,463,466,467,82],{},"Adds ",[15,458,459],{},"infiniteQueryOptions",[15,461,141],{}," for operations that declare the query parameter named in ",[15,464,465],{},"infinite.queryParam",". Needs ",[20,468,469],{"href":267},[15,470,471],{},"hooks: true",[31,473,474,482],{},[34,475,476],{},[37,477,478,480],{},[40,479],{},[40,481],{},[50,483,484,493,501],{},[37,485,486,488],{},[55,487,396],{},[55,489,490],{},[15,491,492],{},"Partial\u003CInfinite> | false",[37,494,495,497],{},[55,496,406],{},[55,498,499],{},[15,500,147],{},[37,502,503,505],{},[55,504,48],{},[55,506,507],{},[15,508,147],{},[510,511,465],"h4",{"id":512},"infinitequeryparam",[11,514,515],{},"Query parameter that carries the page cursor.",[31,517,518,526],{},[34,519,520],{},[37,521,522,524],{},[40,523],{},[40,525],{},[50,527,528,537,545],{},[37,529,530,532],{},[55,531,396],{},[55,533,534],{},[15,535,536],{},"string",[37,538,539,541],{},[55,540,406],{},[55,542,543],{},[15,544,147],{},[37,546,547,549],{},[55,548,48],{},[55,550,551],{},[15,552,553],{},"'id'",[510,555,557],{"id":556},"infiniteinitialpageparam","infinite.initialPageParam",[11,559,560,561,564],{},"Initial value for ",[15,562,563],{},"pageParam"," on the first fetch.",[31,566,567,575],{},[34,568,569],{},[37,570,571,573],{},[40,572],{},[40,574],{},[50,576,577,586,594],{},[37,578,579,581],{},[55,580,396],{},[55,582,583],{},[15,584,585],{},"unknown",[37,587,588,590],{},[55,589,406],{},[55,591,592],{},[15,593,147],{},[37,595,596,598],{},[55,597,48],{},[55,599,600],{},[15,601,602],{},"0",[510,604,606],{"id":605},"infinitenextparam","infinite.nextParam",[11,608,609,610,613,614,617],{},"Path to the next-page cursor on the response, as dot notation (",[15,611,612],{},"'pagination.next.id'",") or array form (",[15,615,616],{},"['pagination', 'next', 'id']",").",[31,619,620,628],{},[34,621,622],{},[37,623,624,626],{},[40,625],{},[40,627],{},[50,629,630,639,647],{},[37,631,632,634],{},[55,633,396],{},[55,635,636],{},[15,637,638],{},"string | Array\u003Cstring> | null",[37,640,641,643],{},[55,642,406],{},[55,644,645],{},[15,646,147],{},[37,648,649,651],{},[55,650,48],{},[55,652,653],{},[15,654,655],{},"null",[510,657,659],{"id":658},"infinitepreviousparam","infinite.previousParam",[11,661,662],{},"Path to the previous-page cursor on the response, in the same dot or array form.",[31,664,665,673],{},[34,666,667],{},[37,668,669,671],{},[40,670],{},[40,672],{},[50,674,675,683,691],{},[37,676,677,679],{},[55,678,396],{},[55,680,681],{},[15,682,638],{},[37,684,685,687],{},[55,686,406],{},[55,688,689],{},[15,690,147],{},[37,692,693,695],{},[55,694,48],{},[55,696,697],{},[15,698,655],{},[510,700,702],{"id":701},"infinitecursorparam","infinite.cursorParam",[11,704,705,706,447,709,712,713,447,716,719],{},"Deprecated path to the cursor field, read for both ",[15,707,708],{},"getNextPageParam",[15,710,711],{},"getPreviousPageParam"," when set. Use ",[15,714,715],{},"nextParam",[15,717,718],{},"previousParam"," instead.",[31,721,722,730],{},[34,723,724],{},[37,725,726,728],{},[40,727],{},[40,729],{},[50,731,732,741,749],{},[37,733,734,736],{},[55,735,396],{},[55,737,738],{},[15,739,740],{},"string | null",[37,742,743,745],{},[55,744,406],{},[55,746,747],{},[15,748,147],{},[37,750,751,753],{},[55,752,48],{},[55,754,755],{},[15,756,655],{},[510,758,760],{"id":759},"infinitegetnextpageparam","infinite.getNextPageParam",[11,762,763,764,766,767,447,769,82],{},"Source code for TanStack Query's ",[15,765,708],{},", copied into the generated code as written. Use it when the next page must be computed instead of read from a field. Takes precedence over ",[15,768,715],{},[15,770,771],{},"cursorParam",[31,773,774,782],{},[34,775,776],{},[37,777,778,780],{},[40,779],{},[40,781],{},[50,783,784,792,800],{},[37,785,786,788],{},[55,787,396],{},[55,789,790],{},[15,791,740],{},[37,793,794,796],{},[55,795,406],{},[55,797,798],{},[15,799,147],{},[37,801,802,804],{},[55,803,48],{},[55,805,806],{},[15,807,655],{},[809,810,814],"pre",{"language":811,"code":812,"class":813},"typescript","infinite: {\n  queryParam: 'page',\n  getNextPageParam: '(lastPage) => (lastPage.hasNext ? lastPage.number + 1 : undefined)',\n  getPreviousPageParam: '(firstPage) => (firstPage.number > 0 ? firstPage.number - 1 : undefined)',\n}","highlights",[15,815,817,833,834,833,851,833,864,833,877],{"class":816},"language-typescript",[818,819,822,825,829],"span",{"class":820,"style":821},"line","display: inline",[818,823,135],{"style":824},"color:#24292e;--hls-dark:#e1e4e8",[818,826,828],{"style":827},"color:#d73a49;--hls-dark:#f97583",": ",[818,830,832],{"style":831},"color:#005cc5;--hls-dark:#79b8ff","{","\n",[818,835,836,839,842,844,848],{"class":820,"style":821},[818,837,838],{"style":831},"  ",[818,840,841],{"style":831},"queryParam",[818,843,828],{"style":827},[818,845,847],{"style":846},"color:#032f62;--hls-dark:#9ecbff","'page'",[818,849,850],{"style":827},",",[818,852,853,855,857,859,862],{"class":820,"style":821},[818,854,838],{"style":827},[818,856,708],{"style":831},[818,858,828],{"style":827},[818,860,861],{"style":846},"'(lastPage) => (lastPage.hasNext ? lastPage.number + 1 : undefined)'",[818,863,850],{"style":827},[818,865,866,868,870,872,875],{"class":820,"style":821},[818,867,838],{"style":827},[818,869,711],{"style":831},[818,871,828],{"style":827},[818,873,874],{"style":846},"'(firstPage) => (firstPage.number > 0 ? firstPage.number - 1 : undefined)'",[818,876,850],{"style":827},[818,878,879],{"class":820,"style":821},[818,880,881],{"style":831},"}",[11,883,884,885,69,887,889,890,892,893,896],{},"Without ",[15,886,708],{},[15,888,715],{}," or ",[15,891,771],{},", the hook counts pages up from ",[15,894,895],{},"initialPageParam"," until a page is an empty array. This works only for array responses, so generation warns when the response is an object.",[510,898,900],{"id":899},"infinitegetpreviouspageparam","infinite.getPreviousPageParam",[11,902,763,903,905,906,447,908,82],{},[15,904,711],{},", copied into the generated code as written. Takes precedence over ",[15,907,718],{},[15,909,771],{},[31,911,912,920],{},[34,913,914],{},[37,915,916,918],{},[40,917],{},[40,919],{},[50,921,922,930,938],{},[37,923,924,926],{},[55,925,396],{},[55,927,928],{},[15,929,740],{},[37,931,932,934],{},[55,933,406],{},[55,935,936],{},[15,937,147],{},[37,939,940,942],{},[55,941,48],{},[55,943,944],{},[15,945,655],{},[372,947,157],{"id":157},[11,949,456,950,952,953,956,957,82],{},[15,951,162],{}," hooks next to the regular query hooks. Pass ",[15,954,955],{},"{}"," to turn it on. Needs TanStack Query v5 or higher and ",[20,958,959],{"href":267},[15,960,471],{},[31,962,963,971],{},[34,964,965],{},[37,966,967,969],{},[40,968],{},[40,970],{},[50,972,973,982,990],{},[37,974,975,977],{},[55,976,396],{},[55,978,979],{},[15,980,981],{},"Partial\u003Cobject> | false",[37,983,984,986],{},[55,985,406],{},[55,987,988],{},[15,989,147],{},[37,991,992,994],{},[55,993,48],{},[55,995,996],{},[15,997,147],{},[372,999,177],{"id":177},[11,1001,1002,1003,1006,1007,1009,1010,1014,1015,82],{},"Which operations become queries, emitting a ",[15,1004,1005],{},"queryOptions"," factory by default. Pass ",[15,1008,147],{}," to skip, or set ",[20,1011,1012],{"href":267},[15,1013,270],{}," to also emit ",[15,1016,1017],{},"useQuery",[31,1019,1020,1028],{},[34,1021,1022],{},[37,1023,1024,1026],{},[40,1025],{},[40,1027],{},[50,1029,1030,1039,1047],{},[37,1031,1032,1034],{},[55,1033,396],{},[55,1035,1036],{},[15,1037,1038],{},"Partial\u003CQuery> | false",[37,1040,1041,1043],{},[55,1042,406],{},[55,1044,1045],{},[15,1046,147],{},[37,1048,1049,1051],{},[55,1050,48],{},[55,1052,1053],{},[15,1054,185],{},[510,1056,1058],{"id":1057},"querymethods","query.methods",[11,1060,1061],{},"HTTP methods treated as queries.",[31,1063,1064,1072],{},[34,1065,1066],{},[37,1067,1068,1070],{},[40,1069],{},[40,1071],{},[50,1073,1074,1083,1091],{},[37,1075,1076,1078],{},[55,1077,396],{},[55,1079,1080],{},[15,1081,1082],{},"Array\u003Cstring>",[37,1084,1085,1087],{},[55,1086,406],{},[55,1088,1089],{},[15,1090,147],{},[37,1092,1093,1095],{},[55,1094,48],{},[55,1096,1097],{},[15,1098,1099],{},"['GET', 'QUERY']",[11,1101,1102,1103,1105,1106,1109,1110,1113],{},"Operations whose method is in neither ",[15,1104,1058],{}," nor ",[15,1107,1108],{},"mutation.methods"," get no hook. Keep ",[15,1111,1112],{},"'QUERY'"," here when overriding the list, or QUERY operations are skipped.",[510,1115,1117],{"id":1116},"queryimportpath","query.importPath",[11,1119,1120,1121,447,1123,1125],{},"Module for the ",[15,1122,1005],{},[15,1124,1017],{}," imports.",[31,1127,1128,1136],{},[34,1129,1130],{},[37,1131,1132,1134],{},[40,1133],{},[40,1135],{},[50,1137,1138,1146,1154],{},[37,1139,1140,1142],{},[55,1141,396],{},[55,1143,1144],{},[15,1145,536],{},[37,1147,1148,1150],{},[55,1149,406],{},[55,1151,1152],{},[15,1153,147],{},[37,1155,1156,1158],{},[55,1157,48],{},[55,1159,1160],{},[15,1161,1162],{},"'@tanstack\u002Freact-query'",[372,1164,195],{"id":1165},"querykey",[11,1167,1168,1169,1171,1172,69,1175,447,1178,1181,1182,82],{},"Builds the ",[15,1170,195],{}," for each hook from the operation ",[15,1173,1174],{},"node",[15,1176,1177],{},"casing",[15,1179,1180],{},"variant",". Strings are copied into the generated code as written, so wrap a string literal in ",[15,1183,1184],{},"JSON.stringify(...)",[31,1186,1187,1195],{},[34,1188,1189],{},[37,1190,1191,1193],{},[40,1192],{},[40,1194],{},[50,1196,1197,1206,1214],{},[37,1198,1199,1201],{},[55,1200,396],{},[55,1202,1203],{},[15,1204,1205],{},"(props: { node, casing, variant }) => Array\u003Cunknown>",[37,1207,1208,1210],{},[55,1209,406],{},[55,1211,1212],{},[15,1213,147],{},[37,1215,1216,1218],{},[55,1217,48],{},[55,1219,204,1220],{},[15,1221,207],{},[11,1223,1224,1226,1227,69,1230,69,1233,889,1236,1239,1240,1243],{},[15,1225,1180],{}," is ",[15,1228,1229],{},"'query'",[15,1231,1232],{},"'suspenseQuery'",[15,1234,1235],{},"'infiniteQuery'",[15,1237,1238],{},"'suspenseInfiniteQuery'",". The default key adds ",[15,1241,1242],{},"infinite: true"," to infinite variants so they never share a cache entry with the plain query.",[809,1245,1247],{"language":811,"code":1246,"class":813},"queryKey: ({ node, variant }) => [JSON.stringify({ variant, operationId: node.operationId })]",[15,1248,1249],{"class":816},[818,1250,1251,1253,1255,1258,1260,1262,1265,1268,1271,1274,1277,1279,1283,1285,1287,1289,1292,1294,1296,1298,1301],{"class":820,"style":821},[818,1252,195],{"style":824},[818,1254,828],{"style":827},[818,1256,1257],{"style":831},"({ ",[818,1259,1174],{"style":824},[818,1261,69],{"style":827},[818,1263,1264],{"style":824},"variant ",[818,1266,1267],{"style":831},"}) ",[818,1269,1270],{"style":827},"=> ",[818,1272,1273],{"style":831},"[",[818,1275,1276],{"style":831},"JSON",[818,1278,82],{"style":827},[818,1280,1282],{"style":1281},"color:#6f42c1;--hls-dark:#b392f0","stringify",[818,1284,1257],{"style":831},[818,1286,1180],{"style":824},[818,1288,69],{"style":827},[818,1290,1291],{"style":831},"operationId",[818,1293,828],{"style":827},[818,1295,1174],{"style":824},[818,1297,82],{"style":827},[818,1299,1300],{"style":831},"operationId ",[818,1302,1303],{"style":831},"})]",[11,1305,1306,1307,1309],{},"To extend the default key instead of replacing it, import ",[15,1308,207],{}," and spread its result. The default segments can change between releases, so spread them instead of reading single entries.",[809,1311,1313],{"language":811,"code":1312,"class":813},"import { queryKeyTransformer } from '@kubb\u002Fplugin-react-query'\n\nqueryKey: (props) => [JSON.stringify(props.node.operationId), ...queryKeyTransformer(props)]",[15,1314,1315,833,1335,833,1337],{"class":816},[818,1316,1317,1320,1323,1326,1329,1332],{"class":820,"style":821},[818,1318,1319],{"style":827},"import ",[818,1321,1322],{"style":831},"{ ",[818,1324,1325],{"style":824},"queryKeyTransformer ",[818,1327,1328],{"style":831},"} ",[818,1330,1331],{"style":827},"from ",[818,1333,1334],{"style":846},"'@kubb\u002Fplugin-react-query'",[818,1336],{"class":820,"style":821},[818,1338,1339,1341,1343,1346,1349,1352,1354,1356,1358,1360,1362,1364,1366,1368,1370,1372,1374,1377,1379,1382,1384,1386,1388],{"class":820,"style":821},[818,1340,195],{"style":824},[818,1342,828],{"style":827},[818,1344,1345],{"style":831},"(",[818,1347,1348],{"style":824},"props",[818,1350,1351],{"style":831},") ",[818,1353,1270],{"style":827},[818,1355,1273],{"style":831},[818,1357,1276],{"style":831},[818,1359,82],{"style":827},[818,1361,1282],{"style":1281},[818,1363,1345],{"style":831},[818,1365,1348],{"style":824},[818,1367,82],{"style":827},[818,1369,1174],{"style":831},[818,1371,82],{"style":827},[818,1373,1291],{"style":831},[818,1375,1376],{"style":831},")",[818,1378,69],{"style":827},[818,1380,1381],{"style":827},"...",[818,1383,207],{"style":1281},[818,1385,1345],{"style":831},[818,1387,1348],{"style":824},[818,1389,1390],{"style":831},")]",[372,1392,217],{"id":217},[11,1394,1395,1396,1399,1400,1009,1402,1014,1406,82],{},"Which operations become mutations, emitting a ",[15,1397,1398],{},"mutationOptions"," factory by default. Set ",[15,1401,147],{},[20,1403,1404],{"href":267},[15,1405,270],{},[15,1407,1408],{},"useMutation",[31,1410,1411,1419],{},[34,1412,1413],{},[37,1414,1415,1417],{},[40,1416],{},[40,1418],{},[50,1420,1421,1430,1438],{},[37,1422,1423,1425],{},[55,1424,396],{},[55,1426,1427],{},[15,1428,1429],{},"Partial\u003CMutation> | false",[37,1431,1432,1434],{},[55,1433,406],{},[55,1435,1436],{},[15,1437,147],{},[37,1439,1440,1442],{},[55,1441,48],{},[55,1443,1444],{},[15,1445,225],{},[510,1447,1108],{"id":1448},"mutationmethods",[11,1450,1451],{},"HTTP methods treated as mutations.",[31,1453,1454,1462],{},[34,1455,1456],{},[37,1457,1458,1460],{},[40,1459],{},[40,1461],{},[50,1463,1464,1472,1480],{},[37,1465,1466,1468],{},[55,1467,396],{},[55,1469,1470],{},[15,1471,1082],{},[37,1473,1474,1476],{},[55,1475,406],{},[55,1477,1478],{},[15,1479,147],{},[37,1481,1482,1484],{},[55,1483,48],{},[55,1485,1486],{},[15,1487,1488],{},"['POST', 'PUT', 'PATCH', 'DELETE']",[510,1490,1492],{"id":1491},"mutationimportpath","mutation.importPath",[11,1494,1120,1495,447,1497,1125],{},[15,1496,1398],{},[15,1498,1408],{},[31,1500,1501,1509],{},[34,1502,1503],{},[37,1504,1505,1507],{},[40,1506],{},[40,1508],{},[50,1510,1511,1519,1527],{},[37,1512,1513,1515],{},[55,1514,396],{},[55,1516,1517],{},[15,1518,536],{},[37,1520,1521,1523],{},[55,1522,406],{},[55,1524,1525],{},[15,1526,147],{},[37,1528,1529,1531],{},[55,1530,48],{},[55,1532,1533],{},[15,1534,1162],{},[372,1536,235],{"id":1537},"mutationkey",[11,1539,1168,1540,1542,1543,1546,1547,1549,1550,1552,1553,82],{},[15,1541,235],{}," for each mutation hook, for batched invalidations or ",[15,1544,1545],{},"useMutationState",". Same props and string-inlining caveat as ",[15,1548,195],{},", with ",[15,1551,1180],{}," set to ",[15,1554,1555],{},"'mutation'",[31,1557,1558,1566],{},[34,1559,1560],{},[37,1561,1562,1564],{},[40,1563],{},[40,1565],{},[50,1567,1568,1576,1584],{},[37,1569,1570,1572],{},[55,1571,396],{},[55,1573,1574],{},[15,1575,1205],{},[37,1577,1578,1580],{},[55,1579,406],{},[55,1581,1582],{},[15,1583,147],{},[37,1585,1586,1588],{},[55,1587,48],{},[55,1589,204,1590],{},[15,1591,245],{},[11,1593,1594,1595,1597],{},"Extend the default the same way with ",[15,1596,245],{},":",[809,1599,1601],{"language":811,"code":1600,"class":813},"import { mutationKeyTransformer } from '@kubb\u002Fplugin-react-query'\n\nmutationKey: (props) => [JSON.stringify(props.node.operationId), ...mutationKeyTransformer(props)]",[15,1602,1603,833,1618,833,1620],{"class":816},[818,1604,1605,1607,1609,1612,1614,1616],{"class":820,"style":821},[818,1606,1319],{"style":827},[818,1608,1322],{"style":831},[818,1610,1611],{"style":824},"mutationKeyTransformer ",[818,1613,1328],{"style":831},[818,1615,1331],{"style":827},[818,1617,1334],{"style":846},[818,1619],{"class":820,"style":821},[818,1621,1622,1624,1626,1628,1630,1632,1634,1636,1638,1640,1642,1644,1646,1648,1650,1652,1654,1656,1658,1660,1662,1664,1666],{"class":820,"style":821},[818,1623,235],{"style":824},[818,1625,828],{"style":827},[818,1627,1345],{"style":831},[818,1629,1348],{"style":824},[818,1631,1351],{"style":831},[818,1633,1270],{"style":827},[818,1635,1273],{"style":831},[818,1637,1276],{"style":831},[818,1639,82],{"style":827},[818,1641,1282],{"style":1281},[818,1643,1345],{"style":831},[818,1645,1348],{"style":824},[818,1647,82],{"style":827},[818,1649,1174],{"style":831},[818,1651,82],{"style":827},[818,1653,1291],{"style":831},[818,1655,1376],{"style":831},[818,1657,69],{"style":827},[818,1659,1381],{"style":827},[818,1661,245],{"style":1281},[818,1663,1345],{"style":831},[818,1665,1348],{"style":824},[818,1667,1390],{"style":831},[372,1669,255],{"id":1670},"customoptions",[11,1672,1673,1674,889,1677,1680,1681,1684,1685,82],{},"Routes every hook through your own function that returns extra options such as ",[15,1675,1676],{},"onSuccess",[15,1678,1679],{},"select",". Also emits a ",[15,1682,1683],{},"HookOptions"," type that maps each hook name to its options type. Needs ",[20,1686,1687],{"href":267},[15,1688,471],{},[31,1690,1691,1699],{},[34,1692,1693],{},[37,1694,1695,1697],{},[40,1696],{},[40,1698],{},[50,1700,1701,1710],{},[37,1702,1703,1705],{},[55,1704,396],{},[55,1706,1707],{},[15,1708,1709],{},"{ importPath: string, name?: string }",[37,1711,1712,1714],{},[55,1713,406],{},[55,1715,1716],{},[15,1717,147],{},[510,1719,1721],{"id":1720},"customoptionsimportpath","customOptions.importPath",[11,1723,1724,1725,1728],{},"Module of your custom-options hook, imported as a named import. It resolves from the generated hooks folder. When the module does not exist yet, Kubb writes a starter file there, but only when ",[15,1726,1727],{},"importPath"," stays inside the plugin's output folder. For a path outside it, create the module yourself.",[31,1730,1731,1739],{},[34,1732,1733],{},[37,1734,1735,1737],{},[40,1736],{},[40,1738],{},[50,1740,1741,1749],{},[37,1742,1743,1745],{},[55,1744,396],{},[55,1746,1747],{},[15,1748,536],{},[37,1750,1751,1753],{},[55,1752,406],{},[55,1754,1755,1758,1759,1761],{},[15,1756,1757],{},"true"," when ",[15,1760,255],{}," is set",[510,1763,1765],{"id":1764},"customoptionsname","customOptions.name",[11,1767,1768],{},"Exported name of your custom-options hook.",[31,1770,1771,1779],{},[34,1772,1773],{},[37,1774,1775,1777],{},[40,1776],{},[40,1778],{},[50,1780,1781,1789,1797],{},[37,1782,1783,1785],{},[55,1784,396],{},[55,1786,1787],{},[15,1788,536],{},[37,1790,1791,1793],{},[55,1792,406],{},[55,1794,1795],{},[15,1796,147],{},[37,1798,1799,1801],{},[55,1800,48],{},[55,1802,1803],{},[15,1804,1805],{},"'useCustomHookOptions'",[372,1807,270],{"id":270},[11,1809,1810,1811,1813,1814,69,1816,69,1818,447,1820,1822,1823,1825,1826,69,1828,69,1830,69,1832,1835,1836,82],{},"When ",[15,1812,147],{}," (the default), only the ",[15,1815,1005],{},[15,1817,1398],{},[15,1819,195],{},[15,1821,235],{}," helpers are written, using factory imports that work across TanStack Query adapters. Set ",[15,1824,1757],{}," to also generate ",[15,1827,1017],{},[15,1829,162],{},[15,1831,141],{},[15,1833,1834],{},"useSuspenseInfiniteQuery",", and ",[15,1837,1408],{},[31,1839,1840,1848],{},[34,1841,1842],{},[37,1843,1844,1846],{},[40,1845],{},[40,1847],{},[50,1849,1850,1859,1867],{},[37,1851,1852,1854],{},[55,1853,396],{},[55,1855,1856],{},[15,1857,1858],{},"boolean",[37,1860,1861,1863],{},[55,1862,406],{},[55,1864,1865],{},[15,1866,147],{},[37,1868,1869,1871],{},[55,1870,48],{},[55,1872,1873],{},[15,1874,147],{},[372,1876,341],{"id":341},[11,1878,1879,1880,1882,1883,69,1885,69,1888,1891,1892,1895,1896,82],{},"Overrides generated file and symbol names. Omitted members keep ",[15,1881,349],{},". The shared members (",[15,1884,106],{},[15,1886,1887],{},"file",[15,1889,1890],{},"imports",") and the ",[15,1893,1894],{},"this"," context are described under ",[20,1897,1899],{"href":1898},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#resolver",[15,1900,341],{},[31,1902,1903,1911],{},[34,1904,1905],{},[37,1906,1907,1909],{},[40,1908],{},[40,1910],{},[50,1912,1913,1922],{},[37,1914,1915,1917],{},[55,1916,396],{},[55,1918,1919],{},[15,1920,1921],{},"ResolverPatch\u003CResolverReactQuery>",[37,1923,1924,1926],{},[55,1925,406],{},[55,1927,1928],{},[15,1929,147],{},[1931,1932,1934],"code-collapse",{"name":1933},"ResolverReactQuery patch members",[809,1935,1938],{"language":811,"filename":1936,"code":1937,"class":813},"Partial override","type ResolverReactQueryPatch = {\n  \u002F\u002F plus the shared name, file, and imports members\n  query?: {\n    name?(node: OperationNode): string         \u002F\u002F → 'useGetPetById'\n    optionsName?(node: OperationNode): string  \u002F\u002F → 'getPetByIdQueryOptions'\n    keyName?(node: OperationNode): string       \u002F\u002F → 'getPetByIdQueryKey'\n    keyTypeName?(node: OperationNode): string   \u002F\u002F → 'GetPetByIdQueryKey'\n  }\n  \u002F\u002F suspenseQuery, infiniteQuery, suspenseInfiniteQuery: same members as query\n  mutation?: {\n    name?(node: OperationNode): string          \u002F\u002F → 'useUpdatePet'\n    optionsName?(node: OperationNode): string\n    keyName?(node: OperationNode): string\n  }\n  hook?: {\n    optionsName?(): string\n    customOptionsName?(): string\n  }\n}",[15,1939,1940,833,1953,833,1961,833,1974,833,2002,833,2029,833,2056,833,2083,833,2089,833,2096,833,2108,833,2134,833,2156,833,2178,833,2184,833,2197,833,2212,833,2227,833,2233],{"class":816},[818,1941,1942,1945,1948,1951],{"class":820,"style":821},[818,1943,1944],{"style":827},"type ",[818,1946,1947],{"style":1281},"ResolverReactQueryPatch ",[818,1949,1950],{"style":827},"= ",[818,1952,832],{"style":831},[818,1954,1955,1957],{"class":820,"style":821},[818,1956,838],{"style":831},[818,1958,1960],{"style":1959},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F plus the shared name, file, and imports members",[818,1962,1963,1965,1967,1970,1972],{"class":820,"style":821},[818,1964,838],{"style":1959},[818,1966,177],{"style":831},[818,1968,1969],{"style":824},"?",[818,1971,828],{"style":827},[818,1973,832],{"style":831},[818,1975,1976,1979,1981,1983,1985,1987,1989,1992,1994,1996,1999],{"class":820,"style":821},[818,1977,1978],{"style":831},"    ",[818,1980,106],{"style":824},[818,1982,1969],{"style":827},[818,1984,1345],{"style":831},[818,1986,1174],{"style":824},[818,1988,828],{"style":824},[818,1990,1991],{"style":1281},"OperationNode",[818,1993,1376],{"style":831},[818,1995,828],{"style":824},[818,1997,1998],{"style":1281},"string         ",[818,2000,2001],{"style":1959},"\u002F\u002F → 'useGetPetById'",[818,2003,2004,2006,2009,2011,2013,2015,2017,2019,2021,2023,2026],{"class":820,"style":821},[818,2005,1978],{"style":1959},[818,2007,2008],{"style":824},"optionsName",[818,2010,1969],{"style":827},[818,2012,1345],{"style":831},[818,2014,1174],{"style":824},[818,2016,828],{"style":824},[818,2018,1991],{"style":1281},[818,2020,1376],{"style":831},[818,2022,828],{"style":824},[818,2024,2025],{"style":1281},"string  ",[818,2027,2028],{"style":1959},"\u002F\u002F → 'getPetByIdQueryOptions'",[818,2030,2031,2033,2036,2038,2040,2042,2044,2046,2048,2050,2053],{"class":820,"style":821},[818,2032,1978],{"style":1959},[818,2034,2035],{"style":824},"keyName",[818,2037,1969],{"style":827},[818,2039,1345],{"style":831},[818,2041,1174],{"style":824},[818,2043,828],{"style":824},[818,2045,1991],{"style":1281},[818,2047,1376],{"style":831},[818,2049,828],{"style":824},[818,2051,2052],{"style":1281},"string       ",[818,2054,2055],{"style":1959},"\u002F\u002F → 'getPetByIdQueryKey'",[818,2057,2058,2060,2063,2065,2067,2069,2071,2073,2075,2077,2080],{"class":820,"style":821},[818,2059,1978],{"style":1959},[818,2061,2062],{"style":824},"keyTypeName",[818,2064,1969],{"style":827},[818,2066,1345],{"style":831},[818,2068,1174],{"style":824},[818,2070,828],{"style":824},[818,2072,1991],{"style":1281},[818,2074,1376],{"style":831},[818,2076,828],{"style":824},[818,2078,2079],{"style":1281},"string   ",[818,2081,2082],{"style":1959},"\u002F\u002F → 'GetPetByIdQueryKey'",[818,2084,2085,2087],{"class":820,"style":821},[818,2086,838],{"style":1959},[818,2088,881],{"style":831},[818,2090,2091,2093],{"class":820,"style":821},[818,2092,838],{"style":831},[818,2094,2095],{"style":1959},"\u002F\u002F suspenseQuery, infiniteQuery, suspenseInfiniteQuery: same members as query",[818,2097,2098,2100,2102,2104,2106],{"class":820,"style":821},[818,2099,838],{"style":1959},[818,2101,217],{"style":824},[818,2103,1969],{"style":824},[818,2105,828],{"style":827},[818,2107,832],{"style":831},[818,2109,2110,2112,2114,2116,2118,2120,2122,2124,2126,2128,2131],{"class":820,"style":821},[818,2111,1978],{"style":831},[818,2113,106],{"style":824},[818,2115,1969],{"style":827},[818,2117,1345],{"style":831},[818,2119,1174],{"style":824},[818,2121,828],{"style":824},[818,2123,1991],{"style":1281},[818,2125,1376],{"style":831},[818,2127,828],{"style":824},[818,2129,2130],{"style":1281},"string          ",[818,2132,2133],{"style":1959},"\u002F\u002F → 'useUpdatePet'",[818,2135,2136,2138,2140,2142,2144,2146,2148,2150,2152,2154],{"class":820,"style":821},[818,2137,1978],{"style":1959},[818,2139,2008],{"style":824},[818,2141,1969],{"style":827},[818,2143,1345],{"style":831},[818,2145,1174],{"style":824},[818,2147,828],{"style":824},[818,2149,1991],{"style":1281},[818,2151,1376],{"style":831},[818,2153,828],{"style":824},[818,2155,536],{"style":1281},[818,2157,2158,2160,2162,2164,2166,2168,2170,2172,2174,2176],{"class":820,"style":821},[818,2159,1978],{"style":1281},[818,2161,2035],{"style":824},[818,2163,1969],{"style":827},[818,2165,1345],{"style":831},[818,2167,1174],{"style":824},[818,2169,828],{"style":824},[818,2171,1991],{"style":1281},[818,2173,1376],{"style":831},[818,2175,828],{"style":824},[818,2177,536],{"style":1281},[818,2179,2180,2182],{"class":820,"style":821},[818,2181,838],{"style":1281},[818,2183,881],{"style":831},[818,2185,2186,2188,2191,2193,2195],{"class":820,"style":821},[818,2187,838],{"style":831},[818,2189,2190],{"style":824},"hook",[818,2192,1969],{"style":824},[818,2194,828],{"style":827},[818,2196,832],{"style":831},[818,2198,2199,2201,2203,2205,2208,2210],{"class":820,"style":821},[818,2200,1978],{"style":831},[818,2202,2008],{"style":824},[818,2204,1969],{"style":827},[818,2206,2207],{"style":831},"()",[818,2209,828],{"style":824},[818,2211,536],{"style":1281},[818,2213,2214,2216,2219,2221,2223,2225],{"class":820,"style":821},[818,2215,1978],{"style":1281},[818,2217,2218],{"style":824},"customOptionsName",[818,2220,1969],{"style":827},[818,2222,2207],{"style":831},[818,2224,828],{"style":824},[818,2226,536],{"style":1281},[818,2228,2229,2231],{"class":820,"style":821},[818,2230,838],{"style":1281},[818,2232,881],{"style":831},[818,2234,2235],{"class":820,"style":821},[818,2236,881],{"style":831},{"title":2238,"searchDepth":2239,"depth":2239,"links":2240},"",5,[2241,2243],{"id":28,"depth":2242,"text":29},2,{"id":369,"depth":2242,"text":370,"children":2244},[2245,2247,2257,2258,2262,2263,2267,2268,2272,2273],{"id":119,"depth":2246,"text":119},3,{"id":135,"depth":2246,"text":135,"children":2248},[2249,2251,2252,2253,2254,2255,2256],{"id":512,"depth":2250,"text":465},4,{"id":556,"depth":2250,"text":557},{"id":605,"depth":2250,"text":606},{"id":658,"depth":2250,"text":659},{"id":701,"depth":2250,"text":702},{"id":759,"depth":2250,"text":760},{"id":899,"depth":2250,"text":900},{"id":157,"depth":2246,"text":157},{"id":177,"depth":2246,"text":177,"children":2259},[2260,2261],{"id":1057,"depth":2250,"text":1058},{"id":1116,"depth":2250,"text":1117},{"id":1165,"depth":2246,"text":195},{"id":217,"depth":2246,"text":217,"children":2264},[2265,2266],{"id":1448,"depth":2250,"text":1108},{"id":1491,"depth":2250,"text":1492},{"id":1537,"depth":2246,"text":235},{"id":1670,"depth":2246,"text":255,"children":2269},[2270,2271],{"id":1720,"depth":2250,"text":1721},{"id":1764,"depth":2250,"text":1765},{"id":270,"depth":2246,"text":270},{"id":341,"depth":2246,"text":341},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-react-query\u002Foptions",1793647023124]