@ahoo-wang/fetcher-react 3.1.5 → 3.1.8

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.
package/dist/index.es.js CHANGED
@@ -1,438 +1,465 @@
1
- var k = Object.defineProperty;
2
- var y = (e, t) => k(e, "name", { value: t, configurable: !0 });
3
- import { useRef as m, useCallback as u, useEffect as C, useState as Q, useMemo as h, useSyncExternalStore as A } from "react";
4
- import { nameGenerator as z } from "@ahoo-wang/fetcher-eventbus";
5
- import { fetcherRegistrar as G, getFetcher as K } from "@ahoo-wang/fetcher";
6
- function M() {
7
- const e = m(!1), t = u(() => e.current, []);
8
- return C(() => (e.current = !0, () => {
1
+ var M = Object.defineProperty;
2
+ var b = (e, t) => M(e, "name", { value: t, configurable: !0 });
3
+ import { useRef as v, useCallback as c, useEffect as F, useState as Q, useMemo as h, useReducer as O, useSyncExternalStore as k } from "react";
4
+ import { nameGenerator as q } from "@ahoo-wang/fetcher-eventbus";
5
+ import { fetcherRegistrar as U, getFetcher as z } from "@ahoo-wang/fetcher";
6
+ function D() {
7
+ const e = v(!1), t = c(() => e.current, []);
8
+ return F(() => (e.current = !0, () => {
9
9
  e.current = !1;
10
10
  }), []), t;
11
11
  }
12
- y(M, "useMounted");
13
- function S(e) {
14
- const t = m(e);
12
+ b(D, "useMounted");
13
+ function C(e) {
14
+ const t = v(e);
15
15
  return t.current = e, t;
16
16
  }
17
- y(S, "useLatest");
18
- var T = /* @__PURE__ */ ((e) => (e.IDLE = "idle", e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(T || {});
19
- function D(e) {
20
- const [t, r] = Q(
17
+ b(C, "useLatest");
18
+ var G = /* @__PURE__ */ ((e) => (e.IDLE = "idle", e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e))(G || {});
19
+ function K(e) {
20
+ const [t, n] = Q(
21
21
  e?.initialStatus ?? "idle"
22
22
  /* IDLE */
23
- ), [c, o] = Q(void 0), [i, n] = Q(void 0), s = M(), a = S(e), l = u(() => {
24
- s() && (r(
23
+ ), [o, i] = Q(void 0), [l, s] = Q(void 0), u = D(), d = C(e), a = c(() => {
24
+ u() && (n(
25
25
  "loading"
26
26
  /* LOADING */
27
- ), n(void 0));
28
- }, [s]), f = u(
29
- async (b) => {
30
- if (s()) {
31
- o(b), r(
27
+ ), s(void 0));
28
+ }, [u]), f = c(
29
+ async (y) => {
30
+ if (u()) {
31
+ i(y), n(
32
32
  "success"
33
33
  /* SUCCESS */
34
- ), n(void 0);
34
+ ), s(void 0);
35
35
  try {
36
- await a.current?.onSuccess?.(b);
36
+ await d.current?.onSuccess?.(y);
37
37
  } catch (E) {
38
38
  console.warn("PromiseState onSuccess callback error:", E);
39
39
  }
40
40
  }
41
41
  },
42
- [s, a]
43
- ), d = u(
44
- async (b) => {
45
- if (s()) {
46
- n(b), r(
42
+ [u, d]
43
+ ), r = c(
44
+ async (y) => {
45
+ if (u()) {
46
+ s(y), n(
47
47
  "error"
48
48
  /* ERROR */
49
- ), o(void 0);
49
+ ), i(void 0);
50
50
  try {
51
- await a.current?.onError?.(b);
51
+ await d.current?.onError?.(y);
52
52
  } catch (E) {
53
53
  console.warn("PromiseState onError callback error:", E);
54
54
  }
55
55
  }
56
56
  },
57
- [s, a]
58
- ), g = u(() => {
59
- s() && (r(
57
+ [u, d]
58
+ ), g = c(() => {
59
+ u() && (n(
60
60
  "idle"
61
61
  /* IDLE */
62
- ), n(void 0), o(void 0));
63
- }, [s]);
62
+ ), s(void 0), i(void 0));
63
+ }, [u]);
64
64
  return h(
65
65
  () => ({
66
66
  status: t,
67
67
  loading: t === "loading",
68
- result: c,
69
- error: i,
70
- setLoading: l,
68
+ result: o,
69
+ error: l,
70
+ setLoading: a,
71
71
  setSuccess: f,
72
- setError: d,
72
+ setError: r,
73
73
  setIdle: g
74
74
  }),
75
- [t, c, i, l, f, d, g]
75
+ [t, o, l, a, f, r, g]
76
76
  );
77
77
  }
78
- y(D, "usePromiseState");
79
- function P() {
80
- const e = m(0), t = u(() => ++e.current, []), r = u(() => e.current, []), c = u((n) => n === e.current, []), o = u(() => {
78
+ b(K, "usePromiseState");
79
+ function T() {
80
+ const e = v(0), t = c(() => ++e.current, []), n = c(() => e.current, []), o = c((s) => s === e.current, []), i = c(() => {
81
81
  e.current++;
82
- }, []), i = u(() => {
82
+ }, []), l = c(() => {
83
83
  e.current = 0;
84
84
  }, []);
85
85
  return h(() => ({
86
86
  generate: t,
87
- current: r,
88
- isLatest: c,
89
- invalidate: o,
90
- reset: i
91
- }), [t, r, c, o, i]);
87
+ current: n,
88
+ isLatest: o,
89
+ invalidate: i,
90
+ reset: l
91
+ }), [t, n, o, i, l]);
92
92
  }
93
- y(P, "useRequestId");
94
- function O(e) {
93
+ b(T, "useRequestId");
94
+ function P(e) {
95
95
  const {
96
96
  loading: t,
97
- result: r,
98
- error: c,
99
- status: o,
100
- setLoading: i,
101
- setSuccess: n,
102
- setError: s,
103
- setIdle: a
104
- } = D(e), l = M(), f = P(), d = e?.propagateError, g = u(
105
- async (E) => {
106
- if (!l())
107
- throw new Error("Component is unmounted");
108
- const w = f.generate();
109
- i();
97
+ result: n,
98
+ error: o,
99
+ status: i,
100
+ setLoading: l,
101
+ setSuccess: s,
102
+ setError: u,
103
+ setIdle: d
104
+ } = K(e), a = D(), f = T(), r = v(void 0), g = e?.propagateError, y = e?.onAbort, E = c(async () => {
105
+ try {
106
+ await y?.();
107
+ } catch (w) {
108
+ console.warn("useExecutePromise onAbort callback error:", w);
109
+ }
110
+ }, [y]), S = c(
111
+ async (w) => {
112
+ r.current && (r.current.abort(), await E());
113
+ const I = new AbortController();
114
+ r.current = I;
115
+ const A = f.generate();
116
+ l();
110
117
  try {
111
- const R = await (typeof E == "function" ? E() : E);
112
- return l() && f.isLatest(w) && await n(R), R;
113
- } catch (x) {
114
- if (l() && f.isLatest(w) && await s(x), d)
115
- throw x;
116
- return x;
118
+ const R = await w(I);
119
+ a() && f.isLatest(A) && await s(R);
120
+ } catch (R) {
121
+ if (R instanceof Error && R.name === "AbortError") {
122
+ a() && d();
123
+ return;
124
+ }
125
+ if (a() && f.isLatest(A) && await u(R), g)
126
+ throw R;
127
+ } finally {
128
+ r.current === I && (r.current = void 0);
117
129
  }
118
130
  },
119
- [i, n, s, l, f, d]
120
- ), b = u(() => {
121
- l() && a();
122
- }, [a, l]);
123
- return h(
131
+ [
132
+ l,
133
+ s,
134
+ u,
135
+ d,
136
+ a,
137
+ f,
138
+ g,
139
+ E
140
+ ]
141
+ ), m = c(() => {
142
+ a() && d();
143
+ }, [d, a]), x = c(async () => {
144
+ m(), r.current && (r.current.abort(), r.current = void 0, await E());
145
+ }, [m, E]);
146
+ return F(() => () => {
147
+ x();
148
+ }, [x]), h(
124
149
  () => ({
125
150
  loading: t,
126
- result: r,
127
- error: c,
128
- status: o,
129
- execute: g,
130
- reset: b
151
+ result: n,
152
+ error: o,
153
+ status: i,
154
+ execute: S,
155
+ reset: m,
156
+ abort: x
131
157
  }),
132
- [t, r, c, o, g, b]
158
+ [t, n, o, i, S, m, x]
133
159
  );
134
160
  }
135
- y(O, "useExecutePromise");
136
- function H() {
137
- const e = m(/* @__PURE__ */ new Map()), t = u((d) => e.current.get(d), []), r = u(
138
- (d, g) => e.current.set(d, g),
161
+ b(P, "useExecutePromise");
162
+ function J() {
163
+ const e = v(/* @__PURE__ */ new Map()), t = c((r) => e.current.get(r), []), n = c(
164
+ (r, g) => e.current.set(r, g),
139
165
  []
140
- ), c = u((d) => e.current.has(d), []), o = u((d) => e.current.delete(d), []), i = u(() => e.current.clear(), []), n = u(() => e.current.keys(), []), s = u(() => e.current.values(), []), a = u(() => e.current.entries(), []), l = u(() => e.current[Symbol.iterator](), []), f = u((d) => (g) => {
141
- g ? e.current.set(d, g) : e.current.delete(d);
166
+ ), o = c((r) => e.current.has(r), []), i = c((r) => e.current.delete(r), []), l = c(() => e.current.clear(), []), s = c(() => e.current.keys(), []), u = c(() => e.current.values(), []), d = c(() => e.current.entries(), []), a = c(() => e.current[Symbol.iterator](), []), f = c((r) => (g) => {
167
+ g ? e.current.set(r, g) : e.current.delete(r);
142
168
  }, []);
143
- return C(() => () => {
169
+ return F(() => () => {
144
170
  e.current.clear();
145
171
  }, []), h(
146
172
  () => ({
147
173
  register: f,
148
174
  get: t,
149
- set: r,
150
- has: c,
151
- delete: o,
152
- clear: i,
153
- keys: n,
154
- values: s,
155
- entries: a,
175
+ set: n,
176
+ has: o,
177
+ delete: i,
178
+ clear: l,
179
+ keys: s,
180
+ values: u,
181
+ entries: d,
156
182
  get size() {
157
183
  return e.current.size;
158
184
  },
159
- [Symbol.iterator]: l
185
+ [Symbol.iterator]: a
160
186
  }),
161
- [f, t, r, c, o, i, n, s, a, l]
187
+ [f, t, n, o, i, l, s, u, d, a]
162
188
  );
163
189
  }
164
- y(H, "useRefs");
190
+ b(J, "useRefs");
165
191
  function p(e, t) {
166
192
  if (t.leading === !1 && t.trailing === !1)
167
193
  throw new Error(
168
194
  "useDebouncedCallback: at least one of leading or trailing must be true"
169
195
  );
170
- const r = m(
196
+ const n = v(
171
197
  void 0
172
- ), c = m(!1), o = S(e), i = S(t), n = u(() => r.current !== void 0, []), s = u(() => {
173
- r.current !== void 0 && (clearTimeout(r.current), r.current = void 0);
198
+ ), o = v(!1), i = C(e), l = C(t), s = c(() => n.current !== void 0, []), u = c(() => {
199
+ n.current !== void 0 && (clearTimeout(n.current), n.current = void 0);
174
200
  }, []);
175
- C(() => () => {
176
- s();
177
- }, [s]);
178
- const a = u(
179
- (...l) => {
180
- const { leading: f = !1, trailing: d = !0, delay: g } = i.current;
181
- s(), f && !c.current && (o.current(...l), c.current = !0), d && (r.current = setTimeout(() => {
182
- c.current || o.current(...l), c.current = !1, r.current = void 0;
201
+ F(() => () => {
202
+ u();
203
+ }, [u]);
204
+ const d = c(
205
+ (...a) => {
206
+ const { leading: f = !1, trailing: r = !0, delay: g } = l.current;
207
+ u(), f && !o.current && (i.current(...a), o.current = !0), r && (n.current = setTimeout(() => {
208
+ o.current || i.current(...a), o.current = !1, n.current = void 0;
183
209
  }, g));
184
210
  },
185
- [o, i, s]
211
+ [i, l, u]
186
212
  );
187
213
  return h(
188
214
  () => ({
189
- run: a,
190
- cancel: s,
191
- isPending: n
215
+ run: d,
216
+ cancel: u,
217
+ isPending: s
192
218
  }),
193
- [a, s, n]
219
+ [d, u, s]
194
220
  );
195
221
  }
196
- y(p, "useDebouncedCallback");
197
- function J(e) {
198
- const { loading: t, result: r, error: c, execute: o, reset: i, status: n } = O(e), { run: s, cancel: a, isPending: l } = p(
199
- o,
222
+ b(p, "useDebouncedCallback");
223
+ function W(e) {
224
+ const { loading: t, result: n, error: o, execute: i, reset: l, abort: s, status: u } = P(e), { run: d, cancel: a, isPending: f } = p(
225
+ i,
200
226
  e.debounce
201
227
  );
202
228
  return h(
203
229
  () => ({
204
230
  loading: t,
205
- result: r,
206
- error: c,
207
- status: n,
208
- run: s,
231
+ result: n,
232
+ error: o,
233
+ status: u,
234
+ reset: l,
235
+ abort: s,
236
+ run: d,
209
237
  cancel: a,
210
- isPending: l,
211
- reset: i
238
+ isPending: f
212
239
  }),
213
- [t, r, c, n, s, a, l, i]
240
+ [t, n, o, u, l, s, d, a, f]
214
241
  );
215
242
  }
216
- y(J, "useDebouncedExecutePromise");
217
- function W(e, t) {
218
- const r = u(
219
- (n) => e.addListener({
220
- name: z.generate("useKeyStorage"),
243
+ b(W, "useDebouncedExecutePromise");
244
+ function X() {
245
+ const [, e] = O((t) => t + 1, 0);
246
+ return e;
247
+ }
248
+ b(X, "useForceUpdate");
249
+ function Y(e, t) {
250
+ const n = c(
251
+ (s) => e.addListener({
252
+ name: q.generate("useKeyStorage"),
221
253
  // Generate unique listener name
222
- handle: n
254
+ handle: s
223
255
  // Callback to trigger React re-render on storage changes
224
256
  }),
225
257
  [e]
226
258
  // Recreate subscription only if keyStorage changes
227
- ), c = u(() => {
228
- const n = e.get();
229
- return n !== null ? n : t ?? null;
230
- }, [e, t]), o = A(r, c, c), i = u(
231
- (n) => e.set(n),
259
+ ), o = c(() => {
260
+ const s = e.get();
261
+ return s !== null ? s : t ?? null;
262
+ }, [e, t]), i = k(n, o, o), l = c(
263
+ (s) => e.set(s),
232
264
  [e]
233
265
  // Recreate setter only if keyStorage changes
234
266
  );
235
- return [o, i];
267
+ return [i, l];
236
268
  }
237
- y(W, "useKeyStorage");
269
+ b(Y, "useKeyStorage");
238
270
  function N(e) {
239
- const { fetcher: t = G.default } = e || {}, {
240
- loading: r,
241
- result: c,
242
- error: o,
243
- status: i,
244
- setLoading: n,
245
- setSuccess: s,
246
- setError: a,
247
- setIdle: l
248
- } = D(e), [f, d] = Q(
271
+ const { fetcher: t = U.default } = e || {}, {
272
+ loading: n,
273
+ result: o,
274
+ error: i,
275
+ status: l,
276
+ execute: s,
277
+ reset: u,
278
+ abort: d
279
+ } = P(e), [a, f] = Q(
249
280
  void 0
250
- ), g = M(), b = m(void 0), E = P(), w = S(e), x = K(t), R = u(
251
- async (I) => {
252
- b.current && b.current.abort(), b.current = I.abortController ?? new AbortController(), I.abortController = b.current;
253
- const F = E.generate();
254
- n();
281
+ ), r = C(e), g = z(t), y = c(
282
+ async (m) => {
255
283
  try {
256
- const v = await x.exchange(
257
- I,
258
- w.current
259
- );
260
- g() && E.isLatest(F) && d(v);
261
- const q = await v.extractResult();
262
- g() && E.isLatest(F) && await s(q);
263
- } catch (v) {
264
- if (v instanceof Error && v.name === "AbortError") {
265
- g() && l();
266
- return;
267
- }
268
- g() && E.isLatest(F) && await a(v);
269
- } finally {
270
- b.current === I.abortController && (b.current = void 0);
284
+ await s(async (x) => {
285
+ m.abortController = x;
286
+ const w = await g.exchange(
287
+ m,
288
+ r.current
289
+ );
290
+ return f(w), await w.extractResult();
291
+ });
292
+ } catch (x) {
293
+ throw f(void 0), x;
271
294
  }
272
295
  },
273
- [
274
- x,
275
- g,
276
- w,
277
- n,
278
- s,
279
- l,
280
- a,
281
- E
282
- ]
283
- );
284
- return C(() => () => {
285
- b.current?.abort(), b.current = void 0;
286
- }, []), h(
296
+ [s, g, r]
297
+ ), E = c(() => {
298
+ u(), f(void 0);
299
+ }, [u]), S = c(() => {
300
+ d(), f(void 0);
301
+ }, [d]);
302
+ return h(
287
303
  () => ({
288
- loading: r,
289
- result: c,
290
- error: o,
291
- status: i,
292
- exchange: f,
293
- execute: R
304
+ loading: n,
305
+ result: o,
306
+ error: i,
307
+ status: l,
308
+ exchange: a,
309
+ execute: y,
310
+ reset: E,
311
+ abort: S
294
312
  }),
295
- [r, c, o, i, f, R]
313
+ [n, o, i, l, a, y, E, S]
296
314
  );
297
315
  }
298
- y(N, "useFetcher");
299
- function X(e) {
300
- const { loading: t, result: r, error: c, status: o, exchange: i, execute: n } = N(e), { run: s, cancel: a, isPending: l } = p(
301
- n,
316
+ b(N, "useFetcher");
317
+ function Z(e) {
318
+ const { loading: t, result: n, error: o, status: i, exchange: l, execute: s, reset: u, abort: d } = N(e), { run: a, cancel: f, isPending: r } = p(
319
+ s,
302
320
  e.debounce
303
321
  );
304
322
  return h(
305
323
  () => ({
306
324
  loading: t,
307
- result: r,
308
- error: c,
309
- status: o,
310
- exchange: i,
311
- run: s,
312
- cancel: a,
313
- isPending: l
325
+ result: n,
326
+ error: o,
327
+ status: i,
328
+ exchange: l,
329
+ reset: u,
330
+ abort: d,
331
+ run: a,
332
+ cancel: f,
333
+ isPending: r
314
334
  }),
315
- [t, r, c, o, i, s, a, l]
335
+ [t, n, o, i, l, u, d, a, f, r]
316
336
  );
317
337
  }
318
- y(X, "useDebouncedFetcher");
338
+ b(Z, "useDebouncedFetcher");
319
339
  function L(e) {
320
- const t = S(e), {
321
- loading: r,
322
- result: c,
323
- error: o,
324
- status: i,
325
- execute: n,
326
- reset: s
327
- } = O(t.current), a = m(e.initialQuery), l = u(async () => t.current.execute(
340
+ const t = C(e), {
341
+ loading: n,
342
+ result: o,
343
+ error: i,
344
+ status: l,
345
+ execute: s,
346
+ reset: u,
347
+ abort: d
348
+ } = P(t.current), a = v(e.initialQuery), f = c(async (E) => t.current.execute(
328
349
  a.current,
329
- t.current.attributes
330
- ), [a, t]), f = u(() => n(l), [n, l]), d = u(() => a.current, [a]), g = u(
331
- (b) => {
332
- a.current = b, t.current.autoExecute && f();
350
+ t.current.attributes,
351
+ E
352
+ ), [a, t]), r = c(() => s(f), [s, f]), g = c(() => a.current, [a]), y = c(
353
+ (E) => {
354
+ a.current = E, t.current.autoExecute && r();
333
355
  },
334
- [a, t, f]
356
+ [a, t, r]
335
357
  );
336
- return C(() => {
337
- t.current.autoExecute && f();
338
- }, [t, f]), h(
358
+ return F(() => {
359
+ t.current.autoExecute && r();
360
+ }, [t, r]), h(
339
361
  () => ({
340
- loading: r,
341
- result: c,
342
- error: o,
343
- status: i,
344
- execute: f,
345
- reset: s,
346
- getQuery: d,
347
- setQuery: g
362
+ loading: n,
363
+ result: o,
364
+ error: i,
365
+ status: l,
366
+ execute: r,
367
+ reset: u,
368
+ abort: d,
369
+ getQuery: g,
370
+ setQuery: y
348
371
  }),
349
372
  [
350
- r,
351
- c,
373
+ n,
352
374
  o,
353
375
  i,
354
- f,
355
- s,
376
+ l,
377
+ r,
378
+ u,
356
379
  d,
357
- g
380
+ g,
381
+ y
358
382
  ]
359
383
  );
360
384
  }
361
- y(L, "useQuery");
362
- function Y(e) {
385
+ b(L, "useQuery");
386
+ function _(e) {
363
387
  return L(e);
364
388
  }
365
- y(Y, "usePagedQuery");
366
- function Z(e) {
389
+ b(_, "usePagedQuery");
390
+ function $(e) {
367
391
  return L(e);
368
392
  }
369
- y(Z, "useSingleQuery");
370
- function _(e) {
393
+ b($, "useSingleQuery");
394
+ function ee(e) {
371
395
  return L(e);
372
396
  }
373
- y(_, "useCountQuery");
374
- function $(e) {
397
+ b(ee, "useCountQuery");
398
+ function te(e) {
375
399
  return L(e);
376
400
  }
377
- y($, "useListQuery");
378
- function ee(e) {
401
+ b(te, "useListQuery");
402
+ function re(e) {
379
403
  return L(
380
404
  e
381
405
  );
382
406
  }
383
- y(ee, "useListStreamQuery");
384
- function te(e) {
385
- const { loading: t, result: r, error: c, status: o, execute: i, reset: n, getQuery: s, setQuery: a } = L(e), { run: l, cancel: f, isPending: d } = p(
386
- i,
407
+ b(re, "useListStreamQuery");
408
+ function ne(e) {
409
+ const { loading: t, result: n, error: o, status: i, execute: l, reset: s, abort: u, getQuery: d, setQuery: a } = L(e), { run: f, cancel: r, isPending: g } = p(
410
+ l,
387
411
  e.debounce
388
412
  );
389
413
  return h(
390
414
  () => ({
391
415
  loading: t,
392
- result: r,
393
- error: c,
394
- status: o,
395
- reset: n,
396
- getQuery: s,
416
+ result: n,
417
+ error: o,
418
+ status: i,
419
+ reset: s,
420
+ abort: u,
421
+ getQuery: d,
397
422
  setQuery: a,
398
- run: l,
399
- cancel: f,
400
- isPending: d
423
+ run: f,
424
+ cancel: r,
425
+ isPending: g
401
426
  }),
402
427
  [
403
428
  t,
404
- r,
405
- c,
406
- o,
407
429
  n,
430
+ o,
431
+ i,
408
432
  s,
433
+ u,
434
+ d,
409
435
  a,
410
- l,
411
436
  f,
412
- d
437
+ r,
438
+ g
413
439
  ]
414
440
  );
415
441
  }
416
- y(te, "useDebouncedQuery");
442
+ b(ne, "useDebouncedQuery");
417
443
  export {
418
- T as PromiseStatus,
419
- _ as useCountQuery,
444
+ G as PromiseStatus,
445
+ ee as useCountQuery,
420
446
  p as useDebouncedCallback,
421
- J as useDebouncedExecutePromise,
422
- X as useDebouncedFetcher,
423
- te as useDebouncedQuery,
424
- O as useExecutePromise,
447
+ W as useDebouncedExecutePromise,
448
+ Z as useDebouncedFetcher,
449
+ ne as useDebouncedQuery,
450
+ P as useExecutePromise,
425
451
  N as useFetcher,
426
- W as useKeyStorage,
427
- S as useLatest,
428
- $ as useListQuery,
429
- ee as useListStreamQuery,
430
- M as useMounted,
431
- Y as usePagedQuery,
432
- D as usePromiseState,
452
+ X as useForceUpdate,
453
+ Y as useKeyStorage,
454
+ C as useLatest,
455
+ te as useListQuery,
456
+ re as useListStreamQuery,
457
+ D as useMounted,
458
+ _ as usePagedQuery,
459
+ K as usePromiseState,
433
460
  L as useQuery,
434
- H as useRefs,
435
- P as useRequestId,
436
- Z as useSingleQuery
461
+ J as useRefs,
462
+ T as useRequestId,
463
+ $ as useSingleQuery
437
464
  };
438
465
  //# sourceMappingURL=index.es.js.map