@tanstack/react-query 4.1.3 → 4.3.0-beta.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 (103) hide show
  1. package/build/{types/packages/react-query/src → lib}/Hydrate.d.ts +0 -0
  2. package/build/{types/packages/react-query/src → lib}/QueryClientProvider.d.ts +0 -0
  3. package/build/{types/packages/react-query/src → lib}/QueryErrorResetBoundary.d.ts +0 -0
  4. package/build/{types/packages/react-query/src → lib}/index.d.ts +0 -0
  5. package/build/lib/index.js +625 -0
  6. package/build/lib/index.js.map +1 -0
  7. package/build/lib/index.mjs +579 -0
  8. package/build/lib/index.mjs.map +1 -0
  9. package/build/{types/packages/react-query/src → lib}/isRestoring.d.ts +0 -0
  10. package/build/{types/packages/react-query/src → lib}/reactBatchedUpdates.d.ts +0 -0
  11. package/build/{types/packages/react-query/src → lib}/reactBatchedUpdates.native.d.ts +0 -0
  12. package/build/{types/packages/react-query/src → lib}/setBatchUpdatesFn.d.ts +0 -0
  13. package/build/{types/packages/react-query/src → lib}/types.d.ts +0 -0
  14. package/build/{types/packages/react-query/src → lib}/useBaseQuery.d.ts +0 -0
  15. package/build/{types/packages/react-query/src → lib}/useInfiniteQuery.d.ts +0 -0
  16. package/build/{types/packages/react-query/src → lib}/useIsFetching.d.ts +0 -0
  17. package/build/{types/packages/react-query/src → lib}/useIsMutating.d.ts +0 -0
  18. package/build/{types/packages/react-query/src → lib}/useMutation.d.ts +0 -0
  19. package/build/{types/packages/react-query/src → lib}/useQueries.d.ts +0 -0
  20. package/build/{types/packages/react-query/src → lib}/useQuery.d.ts +0 -0
  21. package/build/lib/useSyncExternalStore.d.ts +1 -0
  22. package/build/lib/useSyncExternalStore.native.d.ts +1 -0
  23. package/build/{types/packages/react-query/src → lib}/utils.d.ts +0 -0
  24. package/build/umd/index.development.js +274 -9
  25. package/build/umd/index.development.js.map +1 -1
  26. package/build/umd/index.production.js +3 -2
  27. package/build/umd/index.production.js.map +1 -1
  28. package/package.json +17 -15
  29. package/src/useBaseQuery.ts +1 -1
  30. package/src/useIsFetching.ts +1 -1
  31. package/src/useIsMutating.ts +1 -1
  32. package/src/useMutation.ts +1 -1
  33. package/src/useQueries.ts +1 -1
  34. package/src/useSyncExternalStore.native.ts +3 -0
  35. package/src/useSyncExternalStore.ts +2 -0
  36. package/build/cjs/query-core/build/esm/index.js +0 -3123
  37. package/build/cjs/query-core/build/esm/index.js.map +0 -1
  38. package/build/cjs/react-query/src/Hydrate.js +0 -66
  39. package/build/cjs/react-query/src/Hydrate.js.map +0 -1
  40. package/build/cjs/react-query/src/QueryClientProvider.js +0 -96
  41. package/build/cjs/react-query/src/QueryClientProvider.js.map +0 -1
  42. package/build/cjs/react-query/src/QueryErrorResetBoundary.js +0 -67
  43. package/build/cjs/react-query/src/QueryErrorResetBoundary.js.map +0 -1
  44. package/build/cjs/react-query/src/index.js +0 -64
  45. package/build/cjs/react-query/src/index.js.map +0 -1
  46. package/build/cjs/react-query/src/isRestoring.js +0 -43
  47. package/build/cjs/react-query/src/isRestoring.js.map +0 -1
  48. package/build/cjs/react-query/src/useBaseQuery.js +0 -117
  49. package/build/cjs/react-query/src/useBaseQuery.js.map +0 -1
  50. package/build/cjs/react-query/src/useInfiniteQuery.js +0 -24
  51. package/build/cjs/react-query/src/useInfiniteQuery.js.map +0 -1
  52. package/build/cjs/react-query/src/useIsFetching.js +0 -50
  53. package/build/cjs/react-query/src/useIsFetching.js.map +0 -1
  54. package/build/cjs/react-query/src/useIsMutating.js +0 -50
  55. package/build/cjs/react-query/src/useIsMutating.js.map +0 -1
  56. package/build/cjs/react-query/src/useMutation.js +0 -68
  57. package/build/cjs/react-query/src/useMutation.js.map +0 -1
  58. package/build/cjs/react-query/src/useQueries.js +0 -71
  59. package/build/cjs/react-query/src/useQueries.js.map +0 -1
  60. package/build/cjs/react-query/src/useQuery.js +0 -24
  61. package/build/cjs/react-query/src/useQuery.js.map +0 -1
  62. package/build/cjs/react-query/src/utils.js +0 -25
  63. package/build/cjs/react-query/src/utils.js.map +0 -1
  64. package/build/esm/index.js +0 -3381
  65. package/build/esm/index.js.map +0 -1
  66. package/build/stats-html.html +0 -2689
  67. package/build/stats.json +0 -666
  68. package/build/types/packages/query-core/src/focusManager.d.ts +0 -16
  69. package/build/types/packages/query-core/src/hydration.d.ts +0 -34
  70. package/build/types/packages/query-core/src/index.d.ts +0 -20
  71. package/build/types/packages/query-core/src/infiniteQueryBehavior.d.ts +0 -15
  72. package/build/types/packages/query-core/src/infiniteQueryObserver.d.ts +0 -18
  73. package/build/types/packages/query-core/src/logger.d.ts +0 -8
  74. package/build/types/packages/query-core/src/mutation.d.ts +0 -70
  75. package/build/types/packages/query-core/src/mutationCache.d.ts +0 -57
  76. package/build/types/packages/query-core/src/mutationObserver.d.ts +0 -23
  77. package/build/types/packages/query-core/src/notifyManager.d.ts +0 -18
  78. package/build/types/packages/query-core/src/onlineManager.d.ts +0 -16
  79. package/build/types/packages/query-core/src/queriesObserver.d.ts +0 -23
  80. package/build/types/packages/query-core/src/query.d.ts +0 -119
  81. package/build/types/packages/query-core/src/queryCache.d.ts +0 -64
  82. package/build/types/packages/query-core/src/queryClient.d.ts +0 -65
  83. package/build/types/packages/query-core/src/queryObserver.d.ts +0 -61
  84. package/build/types/packages/query-core/src/removable.d.ts +0 -9
  85. package/build/types/packages/query-core/src/retryer.d.ts +0 -33
  86. package/build/types/packages/query-core/src/subscribable.d.ts +0 -10
  87. package/build/types/packages/query-core/src/types.d.ts +0 -418
  88. package/build/types/packages/query-core/src/utils.d.ts +0 -99
  89. package/build/types/packages/react-query/src/__tests__/Hydrate.test.d.ts +0 -1
  90. package/build/types/packages/react-query/src/__tests__/QueryClientProvider.test.d.ts +0 -1
  91. package/build/types/packages/react-query/src/__tests__/QueryResetErrorBoundary.test.d.ts +0 -6
  92. package/build/types/packages/react-query/src/__tests__/ssr-hydration.test.d.ts +0 -1
  93. package/build/types/packages/react-query/src/__tests__/ssr.test.d.ts +0 -4
  94. package/build/types/packages/react-query/src/__tests__/suspense.test.d.ts +0 -1
  95. package/build/types/packages/react-query/src/__tests__/useInfiniteQuery.test.d.ts +0 -1
  96. package/build/types/packages/react-query/src/__tests__/useIsFetching.test.d.ts +0 -1
  97. package/build/types/packages/react-query/src/__tests__/useIsMutating.test.d.ts +0 -1
  98. package/build/types/packages/react-query/src/__tests__/useMutation.test.d.ts +0 -1
  99. package/build/types/packages/react-query/src/__tests__/useQueries.test.d.ts +0 -1
  100. package/build/types/packages/react-query/src/__tests__/useQuery.test.d.ts +0 -1
  101. package/build/types/packages/react-query/src/__tests__/useQuery.types.test.d.ts +0 -2
  102. package/build/types/packages/react-query/src/__tests__/utils.d.ts +0 -8
  103. package/build/types/tests/utils.d.ts +0 -24
package/build/stats.json DELETED
@@ -1,666 +0,0 @@
1
- {
2
- "version": 2,
3
- "tree": {
4
- "name": "root",
5
- "children": [
6
- {
7
- "name": "index.production.js",
8
- "children": [
9
- {
10
- "name": "packages",
11
- "children": [
12
- {
13
- "name": "query-core/build/esm/index.js",
14
- "uid": "e85a-181"
15
- },
16
- {
17
- "name": "react-query/src",
18
- "children": [
19
- {
20
- "uid": "e85a-183",
21
- "name": "QueryClientProvider.tsx"
22
- },
23
- {
24
- "uid": "e85a-185",
25
- "name": "isRestoring.tsx"
26
- },
27
- {
28
- "uid": "e85a-187",
29
- "name": "useQueries.ts"
30
- },
31
- {
32
- "uid": "e85a-189",
33
- "name": "QueryErrorResetBoundary.tsx"
34
- },
35
- {
36
- "uid": "e85a-191",
37
- "name": "utils.ts"
38
- },
39
- {
40
- "uid": "e85a-193",
41
- "name": "useBaseQuery.ts"
42
- },
43
- {
44
- "uid": "e85a-195",
45
- "name": "useQuery.ts"
46
- },
47
- {
48
- "uid": "e85a-197",
49
- "name": "Hydrate.tsx"
50
- },
51
- {
52
- "uid": "e85a-199",
53
- "name": "useIsFetching.ts"
54
- },
55
- {
56
- "uid": "e85a-201",
57
- "name": "useIsMutating.ts"
58
- },
59
- {
60
- "uid": "e85a-203",
61
- "name": "useMutation.ts"
62
- },
63
- {
64
- "uid": "e85a-205",
65
- "name": "useInfiniteQuery.ts"
66
- },
67
- {
68
- "uid": "e85a-207",
69
- "name": "index.ts"
70
- }
71
- ]
72
- }
73
- ]
74
- }
75
- ]
76
- }
77
- ],
78
- "isRoot": true
79
- },
80
- "nodeParts": {
81
- "e85a-181": {
82
- "renderedLength": 90730,
83
- "gzipLength": 17195,
84
- "brotliLength": 0,
85
- "mainUid": "e85a-180"
86
- },
87
- "e85a-183": {
88
- "renderedLength": 1782,
89
- "gzipLength": 630,
90
- "brotliLength": 0,
91
- "mainUid": "e85a-182"
92
- },
93
- "e85a-185": {
94
- "renderedLength": 219,
95
- "gzipLength": 141,
96
- "brotliLength": 0,
97
- "mainUid": "e85a-184"
98
- },
99
- "e85a-187": {
100
- "renderedLength": 1446,
101
- "gzipLength": 596,
102
- "brotliLength": 0,
103
- "mainUid": "e85a-186"
104
- },
105
- "e85a-189": {
106
- "renderedLength": 792,
107
- "gzipLength": 325,
108
- "brotliLength": 0,
109
- "mainUid": "e85a-188"
110
- },
111
- "e85a-191": {
112
- "renderedLength": 283,
113
- "gzipLength": 177,
114
- "brotliLength": 0,
115
- "mainUid": "e85a-190"
116
- },
117
- "e85a-193": {
118
- "renderedLength": 3348,
119
- "gzipLength": 1057,
120
- "brotliLength": 0,
121
- "mainUid": "e85a-192"
122
- },
123
- "e85a-195": {
124
- "renderedLength": 158,
125
- "gzipLength": 118,
126
- "brotliLength": 0,
127
- "mainUid": "e85a-194"
128
- },
129
- "e85a-197": {
130
- "renderedLength": 760,
131
- "gzipLength": 384,
132
- "brotliLength": 0,
133
- "mainUid": "e85a-196"
134
- },
135
- "e85a-199": {
136
- "renderedLength": 491,
137
- "gzipLength": 271,
138
- "brotliLength": 0,
139
- "mainUid": "e85a-198"
140
- },
141
- "e85a-201": {
142
- "renderedLength": 511,
143
- "gzipLength": 277,
144
- "brotliLength": 0,
145
- "mainUid": "e85a-200"
146
- },
147
- "e85a-203": {
148
- "renderedLength": 1078,
149
- "gzipLength": 480,
150
- "brotliLength": 0,
151
- "mainUid": "e85a-202"
152
- },
153
- "e85a-205": {
154
- "renderedLength": 162,
155
- "gzipLength": 124,
156
- "brotliLength": 0,
157
- "mainUid": "e85a-204"
158
- },
159
- "e85a-207": {
160
- "renderedLength": 0,
161
- "gzipLength": 0,
162
- "brotliLength": 0,
163
- "mainUid": "e85a-206"
164
- }
165
- },
166
- "nodeMetas": {
167
- "e85a-180": {
168
- "id": "/packages/query-core/build/esm/index.js",
169
- "moduleParts": {
170
- "index.production.js": "e85a-181"
171
- },
172
- "imported": [],
173
- "importedBy": [
174
- {
175
- "uid": "e85a-206"
176
- },
177
- {
178
- "uid": "e85a-208"
179
- },
180
- {
181
- "uid": "e85a-186"
182
- },
183
- {
184
- "uid": "e85a-194"
185
- },
186
- {
187
- "uid": "e85a-196"
188
- },
189
- {
190
- "uid": "e85a-198"
191
- },
192
- {
193
- "uid": "e85a-200"
194
- },
195
- {
196
- "uid": "e85a-202"
197
- },
198
- {
199
- "uid": "e85a-204"
200
- },
201
- {
202
- "uid": "e85a-192"
203
- }
204
- ]
205
- },
206
- "e85a-182": {
207
- "id": "/packages/react-query/src/QueryClientProvider.tsx",
208
- "moduleParts": {
209
- "index.production.js": "e85a-183"
210
- },
211
- "imported": [
212
- {
213
- "uid": "e85a-211"
214
- }
215
- ],
216
- "importedBy": [
217
- {
218
- "uid": "e85a-206"
219
- },
220
- {
221
- "uid": "e85a-186"
222
- },
223
- {
224
- "uid": "e85a-196"
225
- },
226
- {
227
- "uid": "e85a-198"
228
- },
229
- {
230
- "uid": "e85a-200"
231
- },
232
- {
233
- "uid": "e85a-202"
234
- },
235
- {
236
- "uid": "e85a-192"
237
- }
238
- ]
239
- },
240
- "e85a-184": {
241
- "id": "/packages/react-query/src/isRestoring.tsx",
242
- "moduleParts": {
243
- "index.production.js": "e85a-185"
244
- },
245
- "imported": [
246
- {
247
- "uid": "e85a-211"
248
- }
249
- ],
250
- "importedBy": [
251
- {
252
- "uid": "e85a-206"
253
- },
254
- {
255
- "uid": "e85a-186"
256
- },
257
- {
258
- "uid": "e85a-192"
259
- }
260
- ]
261
- },
262
- "e85a-186": {
263
- "id": "/packages/react-query/src/useQueries.ts",
264
- "moduleParts": {
265
- "index.production.js": "e85a-187"
266
- },
267
- "imported": [
268
- {
269
- "uid": "e85a-211"
270
- },
271
- {
272
- "uid": "e85a-212"
273
- },
274
- {
275
- "uid": "e85a-180"
276
- },
277
- {
278
- "uid": "e85a-182"
279
- },
280
- {
281
- "uid": "e85a-184"
282
- }
283
- ],
284
- "importedBy": [
285
- {
286
- "uid": "e85a-206"
287
- }
288
- ]
289
- },
290
- "e85a-188": {
291
- "id": "/packages/react-query/src/QueryErrorResetBoundary.tsx",
292
- "moduleParts": {
293
- "index.production.js": "e85a-189"
294
- },
295
- "imported": [
296
- {
297
- "uid": "e85a-211"
298
- }
299
- ],
300
- "importedBy": [
301
- {
302
- "uid": "e85a-206"
303
- },
304
- {
305
- "uid": "e85a-192"
306
- }
307
- ]
308
- },
309
- "e85a-190": {
310
- "id": "/packages/react-query/src/utils.ts",
311
- "moduleParts": {
312
- "index.production.js": "e85a-191"
313
- },
314
- "imported": [],
315
- "importedBy": [
316
- {
317
- "uid": "e85a-202"
318
- },
319
- {
320
- "uid": "e85a-192"
321
- }
322
- ]
323
- },
324
- "e85a-192": {
325
- "id": "/packages/react-query/src/useBaseQuery.ts",
326
- "moduleParts": {
327
- "index.production.js": "e85a-193"
328
- },
329
- "imported": [
330
- {
331
- "uid": "e85a-211"
332
- },
333
- {
334
- "uid": "e85a-212"
335
- },
336
- {
337
- "uid": "e85a-180"
338
- },
339
- {
340
- "uid": "e85a-188"
341
- },
342
- {
343
- "uid": "e85a-182"
344
- },
345
- {
346
- "uid": "e85a-190"
347
- },
348
- {
349
- "uid": "e85a-184"
350
- }
351
- ],
352
- "importedBy": [
353
- {
354
- "uid": "e85a-194"
355
- },
356
- {
357
- "uid": "e85a-204"
358
- }
359
- ]
360
- },
361
- "e85a-194": {
362
- "id": "/packages/react-query/src/useQuery.ts",
363
- "moduleParts": {
364
- "index.production.js": "e85a-195"
365
- },
366
- "imported": [
367
- {
368
- "uid": "e85a-180"
369
- },
370
- {
371
- "uid": "e85a-192"
372
- }
373
- ],
374
- "importedBy": [
375
- {
376
- "uid": "e85a-206"
377
- }
378
- ]
379
- },
380
- "e85a-196": {
381
- "id": "/packages/react-query/src/Hydrate.tsx",
382
- "moduleParts": {
383
- "index.production.js": "e85a-197"
384
- },
385
- "imported": [
386
- {
387
- "uid": "e85a-211"
388
- },
389
- {
390
- "uid": "e85a-180"
391
- },
392
- {
393
- "uid": "e85a-182"
394
- }
395
- ],
396
- "importedBy": [
397
- {
398
- "uid": "e85a-206"
399
- }
400
- ]
401
- },
402
- "e85a-198": {
403
- "id": "/packages/react-query/src/useIsFetching.ts",
404
- "moduleParts": {
405
- "index.production.js": "e85a-199"
406
- },
407
- "imported": [
408
- {
409
- "uid": "e85a-211"
410
- },
411
- {
412
- "uid": "e85a-180"
413
- },
414
- {
415
- "uid": "e85a-212"
416
- },
417
- {
418
- "uid": "e85a-182"
419
- }
420
- ],
421
- "importedBy": [
422
- {
423
- "uid": "e85a-206"
424
- }
425
- ]
426
- },
427
- "e85a-200": {
428
- "id": "/packages/react-query/src/useIsMutating.ts",
429
- "moduleParts": {
430
- "index.production.js": "e85a-201"
431
- },
432
- "imported": [
433
- {
434
- "uid": "e85a-211"
435
- },
436
- {
437
- "uid": "e85a-212"
438
- },
439
- {
440
- "uid": "e85a-180"
441
- },
442
- {
443
- "uid": "e85a-182"
444
- }
445
- ],
446
- "importedBy": [
447
- {
448
- "uid": "e85a-206"
449
- }
450
- ]
451
- },
452
- "e85a-202": {
453
- "id": "/packages/react-query/src/useMutation.ts",
454
- "moduleParts": {
455
- "index.production.js": "e85a-203"
456
- },
457
- "imported": [
458
- {
459
- "uid": "e85a-211"
460
- },
461
- {
462
- "uid": "e85a-212"
463
- },
464
- {
465
- "uid": "e85a-180"
466
- },
467
- {
468
- "uid": "e85a-182"
469
- },
470
- {
471
- "uid": "e85a-190"
472
- }
473
- ],
474
- "importedBy": [
475
- {
476
- "uid": "e85a-206"
477
- }
478
- ]
479
- },
480
- "e85a-204": {
481
- "id": "/packages/react-query/src/useInfiniteQuery.ts",
482
- "moduleParts": {
483
- "index.production.js": "e85a-205"
484
- },
485
- "imported": [
486
- {
487
- "uid": "e85a-180"
488
- },
489
- {
490
- "uid": "e85a-192"
491
- }
492
- ],
493
- "importedBy": [
494
- {
495
- "uid": "e85a-206"
496
- }
497
- ]
498
- },
499
- "e85a-206": {
500
- "id": "/packages/react-query/src/index.ts",
501
- "moduleParts": {
502
- "index.production.js": "e85a-207"
503
- },
504
- "imported": [
505
- {
506
- "uid": "e85a-208"
507
- },
508
- {
509
- "uid": "e85a-180"
510
- },
511
- {
512
- "uid": "e85a-209"
513
- },
514
- {
515
- "uid": "e85a-186"
516
- },
517
- {
518
- "uid": "e85a-194"
519
- },
520
- {
521
- "uid": "e85a-182"
522
- },
523
- {
524
- "uid": "e85a-196"
525
- },
526
- {
527
- "uid": "e85a-188"
528
- },
529
- {
530
- "uid": "e85a-198"
531
- },
532
- {
533
- "uid": "e85a-200"
534
- },
535
- {
536
- "uid": "e85a-202"
537
- },
538
- {
539
- "uid": "e85a-204"
540
- },
541
- {
542
- "uid": "e85a-184"
543
- }
544
- ],
545
- "importedBy": [],
546
- "isEntry": true
547
- },
548
- "e85a-208": {
549
- "id": "/packages/react-query/src/setBatchUpdatesFn.ts",
550
- "moduleParts": {},
551
- "imported": [
552
- {
553
- "uid": "e85a-180"
554
- },
555
- {
556
- "uid": "e85a-210"
557
- }
558
- ],
559
- "importedBy": [
560
- {
561
- "uid": "e85a-206"
562
- }
563
- ]
564
- },
565
- "e85a-209": {
566
- "id": "/packages/react-query/src/types.ts",
567
- "moduleParts": {},
568
- "imported": [],
569
- "importedBy": [
570
- {
571
- "uid": "e85a-206"
572
- }
573
- ]
574
- },
575
- "e85a-210": {
576
- "id": "/packages/react-query/src/reactBatchedUpdates.ts",
577
- "moduleParts": {},
578
- "imported": [
579
- {
580
- "uid": "e85a-213"
581
- }
582
- ],
583
- "importedBy": [
584
- {
585
- "uid": "e85a-208"
586
- }
587
- ]
588
- },
589
- "e85a-211": {
590
- "id": "react",
591
- "moduleParts": {},
592
- "imported": [],
593
- "importedBy": [
594
- {
595
- "uid": "e85a-186"
596
- },
597
- {
598
- "uid": "e85a-182"
599
- },
600
- {
601
- "uid": "e85a-196"
602
- },
603
- {
604
- "uid": "e85a-188"
605
- },
606
- {
607
- "uid": "e85a-198"
608
- },
609
- {
610
- "uid": "e85a-200"
611
- },
612
- {
613
- "uid": "e85a-202"
614
- },
615
- {
616
- "uid": "e85a-184"
617
- },
618
- {
619
- "uid": "e85a-192"
620
- }
621
- ],
622
- "isExternal": true
623
- },
624
- "e85a-212": {
625
- "id": "use-sync-external-store/shim",
626
- "moduleParts": {},
627
- "imported": [],
628
- "importedBy": [
629
- {
630
- "uid": "e85a-186"
631
- },
632
- {
633
- "uid": "e85a-198"
634
- },
635
- {
636
- "uid": "e85a-200"
637
- },
638
- {
639
- "uid": "e85a-202"
640
- },
641
- {
642
- "uid": "e85a-192"
643
- }
644
- ],
645
- "isExternal": true
646
- },
647
- "e85a-213": {
648
- "id": "/node_modules/react-dom/index.js",
649
- "moduleParts": {},
650
- "imported": [],
651
- "importedBy": [
652
- {
653
- "uid": "e85a-210"
654
- }
655
- ]
656
- }
657
- },
658
- "env": {
659
- "rollup": "2.76.0"
660
- },
661
- "options": {
662
- "gzip": true,
663
- "brotli": false,
664
- "sourcemap": false
665
- }
666
- }
@@ -1,16 +0,0 @@
1
- import { Subscribable } from './subscribable';
2
- declare type SetupFn = (setFocused: (focused?: boolean) => void) => (() => void) | undefined;
3
- export declare class FocusManager extends Subscribable {
4
- private focused?;
5
- private cleanup?;
6
- private setup;
7
- constructor();
8
- protected onSubscribe(): void;
9
- protected onUnsubscribe(): void;
10
- setEventListener(setup: SetupFn): void;
11
- setFocused(focused?: boolean): void;
12
- onFocus(): void;
13
- isFocused(): boolean;
14
- }
15
- export declare const focusManager: FocusManager;
16
- export {};
@@ -1,34 +0,0 @@
1
- import type { QueryClient } from './queryClient';
2
- import type { Query, QueryState } from './query';
3
- import type { MutationKey, MutationOptions, QueryKey, QueryOptions } from './types';
4
- import type { Mutation, MutationState } from './mutation';
5
- export interface DehydrateOptions {
6
- dehydrateMutations?: boolean;
7
- dehydrateQueries?: boolean;
8
- shouldDehydrateMutation?: ShouldDehydrateMutationFunction;
9
- shouldDehydrateQuery?: ShouldDehydrateQueryFunction;
10
- }
11
- export interface HydrateOptions {
12
- defaultOptions?: {
13
- queries?: QueryOptions;
14
- mutations?: MutationOptions;
15
- };
16
- }
17
- interface DehydratedMutation {
18
- mutationKey?: MutationKey;
19
- state: MutationState;
20
- }
21
- interface DehydratedQuery {
22
- queryHash: string;
23
- queryKey: QueryKey;
24
- state: QueryState;
25
- }
26
- export interface DehydratedState {
27
- mutations: DehydratedMutation[];
28
- queries: DehydratedQuery[];
29
- }
30
- export declare type ShouldDehydrateQueryFunction = (query: Query) => boolean;
31
- export declare type ShouldDehydrateMutationFunction = (mutation: Mutation) => boolean;
32
- export declare function dehydrate(client: QueryClient, options?: DehydrateOptions): DehydratedState;
33
- export declare function hydrate(client: QueryClient, dehydratedState: unknown, options?: HydrateOptions): void;
34
- export {};