react-query-kit 1.4.9 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +89 -57
  2. package/build/lib/createBaseQuery.d.ts +1 -1
  3. package/build/lib/createBaseQuery.esm.js +31 -24
  4. package/build/lib/createBaseQuery.esm.js.map +1 -1
  5. package/build/lib/createBaseQuery.js +31 -24
  6. package/build/lib/createBaseQuery.js.map +1 -1
  7. package/build/lib/createBaseQuery.mjs +31 -24
  8. package/build/lib/createBaseQuery.mjs.map +1 -1
  9. package/build/lib/createImmutableQuery.d.ts +5 -12
  10. package/build/lib/createImmutableQuery.esm.js +2 -2
  11. package/build/lib/createImmutableQuery.esm.js.map +1 -1
  12. package/build/lib/createImmutableQuery.js +2 -2
  13. package/build/lib/createImmutableQuery.js.map +1 -1
  14. package/build/lib/createImmutableQuery.mjs +2 -2
  15. package/build/lib/createImmutableQuery.mjs.map +1 -1
  16. package/build/lib/createInfiniteQuery.d.ts +4 -12
  17. package/build/lib/createInfiniteQuery.esm.js +2 -2
  18. package/build/lib/createInfiniteQuery.esm.js.map +1 -1
  19. package/build/lib/createInfiniteQuery.js +2 -2
  20. package/build/lib/createInfiniteQuery.js.map +1 -1
  21. package/build/lib/createInfiniteQuery.mjs +2 -2
  22. package/build/lib/createInfiniteQuery.mjs.map +1 -1
  23. package/build/lib/createMutation.d.ts +5 -5
  24. package/build/lib/createMutation.esm.js +3 -12
  25. package/build/lib/createMutation.esm.js.map +1 -1
  26. package/build/lib/createMutation.js +3 -12
  27. package/build/lib/createMutation.js.map +1 -1
  28. package/build/lib/createMutation.mjs +3 -12
  29. package/build/lib/createMutation.mjs.map +1 -1
  30. package/build/lib/createQuery.d.ts +5 -12
  31. package/build/lib/createQuery.esm.js +2 -2
  32. package/build/lib/createQuery.esm.js.map +1 -1
  33. package/build/lib/createQuery.js +2 -2
  34. package/build/lib/createQuery.js.map +1 -1
  35. package/build/lib/createQuery.mjs +2 -2
  36. package/build/lib/createQuery.mjs.map +1 -1
  37. package/build/lib/createSuspenseInfiniteQuery.d.ts +4 -12
  38. package/build/lib/createSuspenseInfiniteQuery.esm.js +2 -2
  39. package/build/lib/createSuspenseInfiniteQuery.esm.js.map +1 -1
  40. package/build/lib/createSuspenseInfiniteQuery.js +2 -2
  41. package/build/lib/createSuspenseInfiniteQuery.js.map +1 -1
  42. package/build/lib/createSuspenseInfiniteQuery.mjs +2 -2
  43. package/build/lib/createSuspenseInfiniteQuery.mjs.map +1 -1
  44. package/build/lib/createSuspenseQuery.d.ts +5 -12
  45. package/build/lib/createSuspenseQuery.esm.js +2 -2
  46. package/build/lib/createSuspenseQuery.esm.js.map +1 -1
  47. package/build/lib/createSuspenseQuery.js +2 -2
  48. package/build/lib/createSuspenseQuery.js.map +1 -1
  49. package/build/lib/createSuspenseQuery.mjs +2 -2
  50. package/build/lib/createSuspenseQuery.mjs.map +1 -1
  51. package/build/lib/index.d.ts +2 -1
  52. package/build/lib/index.esm.js +1 -0
  53. package/build/lib/index.esm.js.map +1 -1
  54. package/build/lib/index.js +2 -0
  55. package/build/lib/index.js.map +1 -1
  56. package/build/lib/index.mjs +1 -0
  57. package/build/lib/index.mjs.map +1 -1
  58. package/build/lib/types.d.ts +51 -36
  59. package/build/lib/utils.d.ts +8 -0
  60. package/build/lib/utils.esm.js +36 -0
  61. package/build/lib/utils.esm.js.map +1 -0
  62. package/build/lib/utils.js +42 -0
  63. package/build/lib/utils.js.map +1 -0
  64. package/build/lib/utils.mjs +36 -0
  65. package/build/lib/utils.mjs.map +1 -0
  66. package/build/stats-html.html +1 -1
  67. package/build/stats.json +129 -91
  68. package/build/umd/index.development.js +75 -45
  69. package/build/umd/index.development.js.map +1 -1
  70. package/build/umd/index.production.js +1 -1
  71. package/build/umd/index.production.js.map +1 -1
  72. package/package.json +2 -1
  73. package/src/createBaseQuery.ts +51 -33
  74. package/src/createImmutableQuery.tsx +14 -42
  75. package/src/createInfiniteQuery.ts +13 -66
  76. package/src/createMutation.ts +21 -38
  77. package/src/createQuery.tsx +17 -34
  78. package/src/createSuspenseInfiniteQuery.ts +14 -73
  79. package/src/createSuspenseQuery.ts +17 -34
  80. package/src/index.ts +2 -0
  81. package/src/types.ts +146 -194
  82. package/src/utils.ts +45 -0
package/build/stats.json CHANGED
@@ -10,35 +10,39 @@
10
10
  "name": "src",
11
11
  "children": [
12
12
  {
13
- "uid": "9cf1-18",
13
+ "uid": "d114-20",
14
+ "name": "utils.ts"
15
+ },
16
+ {
17
+ "uid": "d114-22",
14
18
  "name": "createBaseQuery.ts"
15
19
  },
16
20
  {
17
- "uid": "9cf1-20",
21
+ "uid": "d114-24",
18
22
  "name": "createQuery.tsx"
19
23
  },
20
24
  {
21
- "uid": "9cf1-22",
25
+ "uid": "d114-26",
22
26
  "name": "createImmutableQuery.tsx"
23
27
  },
24
28
  {
25
- "uid": "9cf1-24",
29
+ "uid": "d114-28",
26
30
  "name": "createSuspenseQuery.ts"
27
31
  },
28
32
  {
29
- "uid": "9cf1-26",
33
+ "uid": "d114-30",
30
34
  "name": "createInfiniteQuery.ts"
31
35
  },
32
36
  {
33
- "uid": "9cf1-28",
37
+ "uid": "d114-32",
34
38
  "name": "createSuspenseInfiniteQuery.ts"
35
39
  },
36
40
  {
37
- "uid": "9cf1-30",
41
+ "uid": "d114-34",
38
42
  "name": "createMutation.ts"
39
43
  },
40
44
  {
41
- "uid": "9cf1-32",
45
+ "uid": "d114-36",
42
46
  "name": "index.ts"
43
47
  }
44
48
  ]
@@ -49,248 +53,282 @@
49
53
  "isRoot": true
50
54
  },
51
55
  "nodeParts": {
52
- "9cf1-18": {
53
- "renderedLength": 1443,
54
- "gzipLength": 524,
56
+ "d114-20": {
57
+ "renderedLength": 978,
58
+ "gzipLength": 414,
59
+ "brotliLength": 0,
60
+ "mainUid": "d114-19"
61
+ },
62
+ "d114-22": {
63
+ "renderedLength": 1585,
64
+ "gzipLength": 512,
55
65
  "brotliLength": 0,
56
- "mainUid": "9cf1-17"
66
+ "mainUid": "d114-21"
57
67
  },
58
- "9cf1-20": {
59
- "renderedLength": 121,
60
- "gzipLength": 93,
68
+ "d114-24": {
69
+ "renderedLength": 95,
70
+ "gzipLength": 83,
61
71
  "brotliLength": 0,
62
- "mainUid": "9cf1-19"
72
+ "mainUid": "d114-23"
63
73
  },
64
- "9cf1-22": {
65
- "renderedLength": 402,
66
- "gzipLength": 215,
74
+ "d114-26": {
75
+ "renderedLength": 376,
76
+ "gzipLength": 204,
67
77
  "brotliLength": 0,
68
- "mainUid": "9cf1-21"
78
+ "mainUid": "d114-25"
69
79
  },
70
- "9cf1-24": {
71
- "renderedLength": 295,
72
- "gzipLength": 183,
80
+ "d114-28": {
81
+ "renderedLength": 269,
82
+ "gzipLength": 174,
73
83
  "brotliLength": 0,
74
- "mainUid": "9cf1-23"
84
+ "mainUid": "d114-27"
75
85
  },
76
- "9cf1-26": {
77
- "renderedLength": 137,
78
- "gzipLength": 102,
86
+ "d114-30": {
87
+ "renderedLength": 111,
88
+ "gzipLength": 92,
79
89
  "brotliLength": 0,
80
- "mainUid": "9cf1-25"
90
+ "mainUid": "d114-29"
81
91
  },
82
- "9cf1-28": {
83
- "renderedLength": 311,
84
- "gzipLength": 189,
92
+ "d114-32": {
93
+ "renderedLength": 285,
94
+ "gzipLength": 181,
85
95
  "brotliLength": 0,
86
- "mainUid": "9cf1-27"
96
+ "mainUid": "d114-31"
87
97
  },
88
- "9cf1-30": {
89
- "renderedLength": 489,
90
- "gzipLength": 241,
98
+ "d114-34": {
99
+ "renderedLength": 264,
100
+ "gzipLength": 174,
91
101
  "brotliLength": 0,
92
- "mainUid": "9cf1-29"
102
+ "mainUid": "d114-33"
93
103
  },
94
- "9cf1-32": {
104
+ "d114-36": {
95
105
  "renderedLength": 0,
96
106
  "gzipLength": 0,
97
107
  "brotliLength": 0,
98
- "mainUid": "9cf1-31"
108
+ "mainUid": "d114-35"
99
109
  }
100
110
  },
101
111
  "nodeMetas": {
102
- "9cf1-17": {
112
+ "d114-19": {
113
+ "id": "/src/utils.ts",
114
+ "moduleParts": {
115
+ "index.production.js": "d114-20"
116
+ },
117
+ "imported": [
118
+ {
119
+ "uid": "d114-37"
120
+ }
121
+ ],
122
+ "importedBy": [
123
+ {
124
+ "uid": "d114-35"
125
+ },
126
+ {
127
+ "uid": "d114-33"
128
+ },
129
+ {
130
+ "uid": "d114-21"
131
+ }
132
+ ]
133
+ },
134
+ "d114-21": {
103
135
  "id": "/src/createBaseQuery.ts",
104
136
  "moduleParts": {
105
- "index.production.js": "9cf1-18"
137
+ "index.production.js": "d114-22"
106
138
  },
107
139
  "imported": [
108
140
  {
109
- "uid": "9cf1-33"
141
+ "uid": "d114-19"
110
142
  }
111
143
  ],
112
144
  "importedBy": [
113
145
  {
114
- "uid": "9cf1-19"
146
+ "uid": "d114-23"
115
147
  },
116
148
  {
117
- "uid": "9cf1-21"
149
+ "uid": "d114-25"
118
150
  },
119
151
  {
120
- "uid": "9cf1-23"
152
+ "uid": "d114-27"
121
153
  },
122
154
  {
123
- "uid": "9cf1-25"
155
+ "uid": "d114-29"
124
156
  },
125
157
  {
126
- "uid": "9cf1-27"
158
+ "uid": "d114-31"
127
159
  }
128
160
  ]
129
161
  },
130
- "9cf1-19": {
162
+ "d114-23": {
131
163
  "id": "/src/createQuery.tsx",
132
164
  "moduleParts": {
133
- "index.production.js": "9cf1-20"
165
+ "index.production.js": "d114-24"
134
166
  },
135
167
  "imported": [
136
168
  {
137
- "uid": "9cf1-33"
169
+ "uid": "d114-37"
138
170
  },
139
171
  {
140
- "uid": "9cf1-17"
172
+ "uid": "d114-21"
141
173
  }
142
174
  ],
143
175
  "importedBy": [
144
176
  {
145
- "uid": "9cf1-31"
177
+ "uid": "d114-35"
146
178
  }
147
179
  ]
148
180
  },
149
- "9cf1-21": {
181
+ "d114-25": {
150
182
  "id": "/src/createImmutableQuery.tsx",
151
183
  "moduleParts": {
152
- "index.production.js": "9cf1-22"
184
+ "index.production.js": "d114-26"
153
185
  },
154
186
  "imported": [
155
187
  {
156
- "uid": "9cf1-33"
188
+ "uid": "d114-37"
157
189
  },
158
190
  {
159
- "uid": "9cf1-17"
191
+ "uid": "d114-21"
160
192
  }
161
193
  ],
162
194
  "importedBy": [
163
195
  {
164
- "uid": "9cf1-31"
196
+ "uid": "d114-35"
165
197
  }
166
198
  ]
167
199
  },
168
- "9cf1-23": {
200
+ "d114-27": {
169
201
  "id": "/src/createSuspenseQuery.ts",
170
202
  "moduleParts": {
171
- "index.production.js": "9cf1-24"
203
+ "index.production.js": "d114-28"
172
204
  },
173
205
  "imported": [
174
206
  {
175
- "uid": "9cf1-33"
207
+ "uid": "d114-37"
176
208
  },
177
209
  {
178
- "uid": "9cf1-17"
210
+ "uid": "d114-21"
179
211
  }
180
212
  ],
181
213
  "importedBy": [
182
214
  {
183
- "uid": "9cf1-31"
215
+ "uid": "d114-35"
184
216
  }
185
217
  ]
186
218
  },
187
- "9cf1-25": {
219
+ "d114-29": {
188
220
  "id": "/src/createInfiniteQuery.ts",
189
221
  "moduleParts": {
190
- "index.production.js": "9cf1-26"
222
+ "index.production.js": "d114-30"
191
223
  },
192
224
  "imported": [
193
225
  {
194
- "uid": "9cf1-33"
226
+ "uid": "d114-37"
195
227
  },
196
228
  {
197
- "uid": "9cf1-17"
229
+ "uid": "d114-21"
198
230
  }
199
231
  ],
200
232
  "importedBy": [
201
233
  {
202
- "uid": "9cf1-31"
234
+ "uid": "d114-35"
203
235
  }
204
236
  ]
205
237
  },
206
- "9cf1-27": {
238
+ "d114-31": {
207
239
  "id": "/src/createSuspenseInfiniteQuery.ts",
208
240
  "moduleParts": {
209
- "index.production.js": "9cf1-28"
241
+ "index.production.js": "d114-32"
210
242
  },
211
243
  "imported": [
212
244
  {
213
- "uid": "9cf1-33"
245
+ "uid": "d114-37"
214
246
  },
215
247
  {
216
- "uid": "9cf1-17"
248
+ "uid": "d114-21"
217
249
  }
218
250
  ],
219
251
  "importedBy": [
220
252
  {
221
- "uid": "9cf1-31"
253
+ "uid": "d114-35"
222
254
  }
223
255
  ]
224
256
  },
225
- "9cf1-29": {
257
+ "d114-33": {
226
258
  "id": "/src/createMutation.ts",
227
259
  "moduleParts": {
228
- "index.production.js": "9cf1-30"
260
+ "index.production.js": "d114-34"
229
261
  },
230
262
  "imported": [
231
263
  {
232
- "uid": "9cf1-33"
264
+ "uid": "d114-37"
265
+ },
266
+ {
267
+ "uid": "d114-19"
233
268
  }
234
269
  ],
235
270
  "importedBy": [
236
271
  {
237
- "uid": "9cf1-31"
272
+ "uid": "d114-35"
238
273
  }
239
274
  ]
240
275
  },
241
- "9cf1-31": {
276
+ "d114-35": {
242
277
  "id": "/src/index.ts",
243
278
  "moduleParts": {
244
- "index.production.js": "9cf1-32"
279
+ "index.production.js": "d114-36"
245
280
  },
246
281
  "imported": [
247
282
  {
248
- "uid": "9cf1-19"
283
+ "uid": "d114-23"
284
+ },
285
+ {
286
+ "uid": "d114-25"
249
287
  },
250
288
  {
251
- "uid": "9cf1-21"
289
+ "uid": "d114-27"
252
290
  },
253
291
  {
254
- "uid": "9cf1-23"
292
+ "uid": "d114-29"
255
293
  },
256
294
  {
257
- "uid": "9cf1-25"
295
+ "uid": "d114-31"
258
296
  },
259
297
  {
260
- "uid": "9cf1-27"
298
+ "uid": "d114-33"
261
299
  },
262
300
  {
263
- "uid": "9cf1-29"
301
+ "uid": "d114-19"
264
302
  }
265
303
  ],
266
304
  "importedBy": [],
267
305
  "isEntry": true
268
306
  },
269
- "9cf1-33": {
307
+ "d114-37": {
270
308
  "id": "@tanstack/react-query",
271
309
  "moduleParts": {},
272
310
  "imported": [],
273
311
  "importedBy": [
274
312
  {
275
- "uid": "9cf1-19"
313
+ "uid": "d114-23"
276
314
  },
277
315
  {
278
- "uid": "9cf1-21"
316
+ "uid": "d114-25"
279
317
  },
280
318
  {
281
- "uid": "9cf1-23"
319
+ "uid": "d114-27"
282
320
  },
283
321
  {
284
- "uid": "9cf1-25"
322
+ "uid": "d114-29"
285
323
  },
286
324
  {
287
- "uid": "9cf1-27"
325
+ "uid": "d114-31"
288
326
  },
289
327
  {
290
- "uid": "9cf1-29"
328
+ "uid": "d114-33"
291
329
  },
292
330
  {
293
- "uid": "9cf1-17"
331
+ "uid": "d114-19"
294
332
  }
295
333
  ],
296
334
  "isExternal": true
@@ -4,62 +4,101 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactQueryKit = {}, global.ReactQuery));
5
5
  })(this, (function (exports, reactQuery) { 'use strict';
6
6
 
7
- function createBaseQuery(initialOptions, useRQHook, queryClient, overrideOptions) {
7
+ const useCompatibeQueryClient = (options, queryClient) => // @ts-ignore
8
+ reactQuery.useQueryClient(options != null && options.context ? {
9
+ context: options.context
10
+ } : queryClient);
11
+ const withMiddlewares = (hook, defaultOptions, type) => {
8
12
  const {
9
- primaryKey,
10
- queryFn,
11
- queryKeyHashFn,
12
- useDefaultOptions,
13
- ...defaultOptions
14
- } = initialOptions;
13
+ use = [],
14
+ ...restOptions
15
+ } = defaultOptions;
16
+ return function useMiddleware(options, queryClient) {
17
+ const client = useCompatibeQueryClient(options, queryClient);
18
+ let next = hook;
19
+ const {
20
+ use: configUse = [],
21
+ ...configOptions
22
+ } = client.getDefaultOptions()[type] || {};
23
+ const middleware = configUse.concat(use);
24
+
25
+ for (let i = middleware.length; i--;) {
26
+ next = middleware[i](next);
27
+ }
28
+
29
+ return next({ ...configOptions,
30
+ ...restOptions,
31
+ ...options
32
+ }, queryClient);
33
+ };
34
+ };
35
+ const getQueryKey = (primaryKey, variables) => {
36
+ return variables === undefined ? [primaryKey] : [primaryKey, variables];
37
+ };
38
+
39
+ function createBaseQuery(defaultOptions, useRQHook, overrideOptions) {
40
+ const {
41
+ primaryKey
42
+ } = defaultOptions;
43
+
44
+ {
45
+ // @ts-ignore
46
+ if (defaultOptions.useDefaultOptions) {
47
+ throw new Error('useDefaultOptions is not supported, please use middleware instead.');
48
+ }
49
+ }
15
50
 
16
51
  const getPrimaryKey = () => primaryKey;
17
52
 
18
- const getKey = variables => variables === undefined ? [primaryKey] : [primaryKey, variables];
53
+ const getKey = variables => getQueryKey(primaryKey, variables);
19
54
 
20
- const useGeneratedQuery = options => {
55
+ const getFetchOptions = variables => {
56
+ return {
57
+ queryKey: getKey(variables),
58
+ queryFn: defaultOptions.queryFn,
59
+ queryKeyHashFn: defaultOptions.queryKeyHashFn,
60
+ getPreviousPageParam: defaultOptions.getPreviousPageParam,
61
+ getNextPageParam: defaultOptions.getNextPageParam,
62
+ initialPageParam: defaultOptions.initialPageParam
63
+ };
64
+ };
65
+
66
+ const useGeneratedQuery = (options, queryClient) => {
67
+ const client = useCompatibeQueryClient(options, queryClient);
21
68
  const {
22
69
  enabled,
23
70
  variables,
24
71
  ...mergedOptions
25
- } = { ...defaultOptions,
26
- ...(useDefaultOptions == null ? void 0 : useDefaultOptions()),
27
- ...options,
72
+ } = { ...options,
28
73
  ...overrideOptions
29
74
  };
30
75
  const queryKey = getKey(variables);
31
- const client = reactQuery.useQueryClient( // compatible with ReactQuery v4
32
- // @ts-ignore
33
- mergedOptions.context ? {
34
- context: mergedOptions.context
35
- } : queryClient);
36
76
  const result = useRQHook({ ...mergedOptions,
37
77
  enabled: typeof enabled === 'function' ? enabled(client.getQueryData(queryKey), variables) : enabled,
38
- queryKeyHashFn,
39
- queryFn,
40
78
  queryKey
41
79
  }, client);
42
80
  return Object.assign(result, {
43
- queryKey,
81
+ queryKey: queryKey,
44
82
  variables,
45
83
  setData: (updater, setDataOptions) => client.setQueryData(queryKey, updater, setDataOptions)
46
84
  });
47
85
  };
48
86
 
49
- return Object.assign(useGeneratedQuery, {
87
+ return Object.assign(withMiddlewares(useGeneratedQuery, defaultOptions, 'queries'), {
50
88
  getPrimaryKey,
51
89
  getKey,
52
- queryFn,
53
- queryKeyHashFn
90
+ queryFn: defaultOptions.queryFn,
91
+ queryKeyHashFn: defaultOptions.queryKeyHashFn,
92
+ getFetchOptions
54
93
  });
55
94
  }
56
95
 
57
- function createQuery(options, queryClient) {
58
- return createBaseQuery(options, reactQuery.useQuery, queryClient);
96
+ function createQuery(options) {
97
+ return createBaseQuery(options, reactQuery.useQuery);
59
98
  }
60
99
 
61
- function createImmutableQuery(options, queryClient) {
62
- return createBaseQuery(options, reactQuery.useQuery, queryClient, {
100
+ function createImmutableQuery(options) {
101
+ return createBaseQuery(options, reactQuery.useQuery, {
63
102
  refetchInterval: false,
64
103
  refetchOnMount: false,
65
104
  refetchOnReconnect: false,
@@ -72,8 +111,8 @@
72
111
  });
73
112
  }
74
113
 
75
- function createSuspenseQuery(options, queryClient) {
76
- return createBaseQuery(options, reactQuery.useQuery, queryClient, {
114
+ function createSuspenseQuery(options) {
115
+ return createBaseQuery(options, reactQuery.useQuery, {
77
116
  enabled: true,
78
117
  suspense: true,
79
118
  throwOnError: true,
@@ -83,12 +122,12 @@
83
122
  });
84
123
  }
85
124
 
86
- function createInfiniteQuery(options, queryClient) {
87
- return createBaseQuery(options, reactQuery.useInfiniteQuery, queryClient);
125
+ function createInfiniteQuery(options) {
126
+ return createBaseQuery(options, reactQuery.useInfiniteQuery);
88
127
  }
89
128
 
90
- function createSuspenseInfiniteQuery(options, queryClient) {
91
- return createBaseQuery(options, reactQuery.useInfiniteQuery, queryClient, {
129
+ function createSuspenseInfiniteQuery(options) {
130
+ return createBaseQuery(options, reactQuery.useInfiniteQuery, {
92
131
  enabled: true,
93
132
  suspense: true,
94
133
  throwOnError: true,
@@ -98,20 +137,10 @@
98
137
  });
99
138
  }
100
139
 
101
- function createMutation({
102
- useDefaultOptions,
103
- ...defaultOptions
104
- }, queryClient) {
140
+ function createMutation(defaultOptions) {
105
141
  const getKey = () => defaultOptions.mutationKey;
106
142
 
107
- const useGeneratedMutation = options => {
108
- return reactQuery.useMutation({ ...defaultOptions,
109
- ...(useDefaultOptions == null ? void 0 : useDefaultOptions()),
110
- ...options
111
- }, queryClient);
112
- };
113
-
114
- return Object.assign(useGeneratedMutation, {
143
+ return Object.assign(withMiddlewares(reactQuery.useMutation, defaultOptions, 'mutations'), {
115
144
  getKey,
116
145
  mutationFn: defaultOptions.mutationFn
117
146
  });
@@ -123,6 +152,7 @@
123
152
  exports.createQuery = createQuery;
124
153
  exports.createSuspenseInfiniteQuery = createSuspenseInfiniteQuery;
125
154
  exports.createSuspenseQuery = createSuspenseQuery;
155
+ exports.getQueryKey = getQueryKey;
126
156
 
127
157
  Object.defineProperty(exports, '__esModule', { value: true });
128
158