@studiolambda/query 1.2.0 → 1.4.0
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/query.cjs +1 -1
- package/dist/query.cjs.map +1 -1
- package/dist/query.js +152 -133
- package/dist/query.js.map +1 -1
- package/dist/query_react.cjs +21 -1
- package/dist/query_react.cjs.map +1 -1
- package/dist/query_react.js +395 -304
- package/dist/query_react.js.map +1 -1
- package/dist/src/query/options.d.ts +1 -1
- package/dist/src/react/components/QueryPrefetch.d.ts +1 -1
- package/package.json +43 -26
- package/dist/src/react/_internal.d.ts +0 -1
- package/dist/src/react/components/QueryPrefetch.text.d.ts +0 -1
package/dist/query_react.js
CHANGED
|
@@ -1,341 +1,432 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
var ue = Object.defineProperty;
|
|
2
|
+
var i = (t, e) => ue(t, "name", { value: e, configurable: !0 });
|
|
3
|
+
import V, { createContext as j, useDebugValue as C, use as L, useMemo as v, useCallback as P, useState as _, useEffect as O, useTransition as ce } from "react";
|
|
4
|
+
import { jsx as U, jsxs as ae, Fragment as fe } from "react/jsx-runtime";
|
|
5
|
+
import { createQuery as le } from "./query.js";
|
|
6
|
+
const G = j({
|
|
5
7
|
query: void 0,
|
|
6
8
|
clearOnForget: void 0,
|
|
7
9
|
ignoreTransitionContext: void 0
|
|
8
10
|
});
|
|
9
|
-
function
|
|
10
|
-
return
|
|
11
|
+
function W() {
|
|
12
|
+
return C("useQueryContext"), L(G);
|
|
11
13
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
i(W, "useQueryContext");
|
|
15
|
+
function w(t) {
|
|
16
|
+
C("useQueryInstance");
|
|
17
|
+
const { query: e } = W(), { query: r } = t ?? {};
|
|
18
|
+
return v(
|
|
19
|
+
function() {
|
|
20
|
+
const n = r ?? e;
|
|
21
|
+
if (!n)
|
|
22
|
+
throw new Error(
|
|
23
|
+
"No query instance was found. Please provide one via the resource options or the query context."
|
|
24
|
+
);
|
|
25
|
+
return n;
|
|
26
|
+
},
|
|
27
|
+
[r, e]
|
|
28
|
+
);
|
|
24
29
|
}
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
i(w, "useQueryInstance");
|
|
31
|
+
function de(t, e) {
|
|
32
|
+
C("useQueryActions");
|
|
27
33
|
const {
|
|
28
|
-
expiration:
|
|
29
|
-
fetcher:
|
|
34
|
+
expiration: r,
|
|
35
|
+
fetcher: n,
|
|
30
36
|
stale: o,
|
|
31
|
-
removeOnError:
|
|
32
|
-
fresh:
|
|
33
|
-
} =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return { refetch: b, mutate: m, forget: h };
|
|
63
|
-
}
|
|
64
|
-
return s(H, [b, m, h]);
|
|
37
|
+
removeOnError: s,
|
|
38
|
+
fresh: c
|
|
39
|
+
} = e ?? {}, { query: u, mutate: a, forget: f } = w(e), l = P(
|
|
40
|
+
function(h) {
|
|
41
|
+
return u(t, {
|
|
42
|
+
stale: o ?? !1,
|
|
43
|
+
expiration: r,
|
|
44
|
+
fetcher: n,
|
|
45
|
+
removeOnError: s,
|
|
46
|
+
fresh: c,
|
|
47
|
+
...h
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
[u, t, r, n, o, s, c]
|
|
51
|
+
), m = P(
|
|
52
|
+
function(h, b) {
|
|
53
|
+
return a(t, h, b);
|
|
54
|
+
},
|
|
55
|
+
[a, t]
|
|
56
|
+
), d = P(
|
|
57
|
+
async function() {
|
|
58
|
+
await f(t);
|
|
59
|
+
},
|
|
60
|
+
[f, t]
|
|
61
|
+
);
|
|
62
|
+
return v(
|
|
63
|
+
function() {
|
|
64
|
+
return { refetch: l, mutate: m, forget: d };
|
|
65
|
+
},
|
|
66
|
+
[l, m, d]
|
|
67
|
+
);
|
|
65
68
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
69
|
+
i(de, "useQueryActions");
|
|
70
|
+
function he(t, e) {
|
|
71
|
+
C("useQueryStatus");
|
|
72
|
+
const { expiration: r, subscribe: n } = w(e), [o, s] = _(() => r(t) ?? /* @__PURE__ */ new Date()), [c, u] = _(() => Date.now() > o.getTime()), [a, f] = _(!1), [l, m] = _(!1);
|
|
73
|
+
return O(
|
|
74
|
+
function() {
|
|
75
|
+
function d() {
|
|
76
|
+
u(!0);
|
|
77
|
+
}
|
|
78
|
+
i(d, "handler");
|
|
79
|
+
const h = setTimeout(d, o.getTime() - Date.now());
|
|
80
|
+
return function() {
|
|
81
|
+
clearTimeout(h);
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
[o]
|
|
85
|
+
), O(
|
|
86
|
+
function() {
|
|
87
|
+
function d() {
|
|
88
|
+
m(!0);
|
|
89
|
+
}
|
|
90
|
+
i(d, "onMutating");
|
|
91
|
+
function h() {
|
|
92
|
+
m(!1), s(r(t) ?? /* @__PURE__ */ new Date());
|
|
93
|
+
}
|
|
94
|
+
i(h, "onMutated");
|
|
95
|
+
function b() {
|
|
96
|
+
s(r(t) ?? /* @__PURE__ */ new Date());
|
|
97
|
+
}
|
|
98
|
+
i(b, "onHydrated");
|
|
99
|
+
function T() {
|
|
100
|
+
s(r(t) ?? /* @__PURE__ */ new Date()), f(!1);
|
|
101
|
+
}
|
|
102
|
+
i(T, "onResolved");
|
|
103
|
+
function D() {
|
|
104
|
+
s(r(t) ?? /* @__PURE__ */ new Date());
|
|
105
|
+
}
|
|
106
|
+
i(D, "onForgotten");
|
|
107
|
+
function R() {
|
|
108
|
+
f(!0);
|
|
109
|
+
}
|
|
110
|
+
i(R, "onRefetching");
|
|
111
|
+
function E() {
|
|
112
|
+
f(!1), m(!1);
|
|
113
|
+
}
|
|
114
|
+
i(E, "onError");
|
|
115
|
+
const Q = n(t, "mutating", d), g = n(t, "mutated", h), y = n(t, "hydrated", b), S = n(t, "resolved", T), q = n(t, "forgotten", D), x = n(t, "refetching", R), M = n(t, "error", E);
|
|
116
|
+
return function() {
|
|
117
|
+
Q(), g(), y(), S(), q(), x(), M();
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
[t, n, r, s]
|
|
121
|
+
), v(
|
|
122
|
+
function() {
|
|
123
|
+
return { expiresAt: o, isExpired: c, isRefetching: a, isMutating: l };
|
|
124
|
+
},
|
|
125
|
+
[o, c, a, l]
|
|
126
|
+
);
|
|
116
127
|
}
|
|
117
|
-
|
|
128
|
+
i(he, "useQueryStatus");
|
|
129
|
+
const z = j({
|
|
118
130
|
isPending: void 0,
|
|
119
131
|
startTransition: void 0
|
|
120
132
|
});
|
|
121
|
-
function
|
|
122
|
-
return
|
|
133
|
+
function me() {
|
|
134
|
+
return C("useQueryTransitionContext"), L(z);
|
|
123
135
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
136
|
+
i(me, "useQueryTransitionContext");
|
|
137
|
+
function ge(t, e) {
|
|
138
|
+
C("useQueryBasic");
|
|
139
|
+
const { clearOnForget: r, ignoreTransitionContext: n } = W(), {
|
|
127
140
|
clearOnForget: o,
|
|
128
|
-
ignoreTransitionContext:
|
|
129
|
-
expiration:
|
|
130
|
-
fetcher:
|
|
131
|
-
stale:
|
|
132
|
-
removeOnError:
|
|
133
|
-
fresh:
|
|
134
|
-
} =
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
function I() {
|
|
163
|
-
return h(n, {
|
|
164
|
-
expiration: i,
|
|
165
|
-
fetcher: a,
|
|
166
|
-
stale: l,
|
|
167
|
-
removeOnError: c,
|
|
168
|
-
fresh: g
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
const S = s(I, [
|
|
172
|
-
h,
|
|
173
|
-
n,
|
|
174
|
-
i,
|
|
175
|
-
a,
|
|
176
|
-
l,
|
|
177
|
-
c,
|
|
178
|
-
g
|
|
179
|
-
]), [R, C] = E(A(S));
|
|
180
|
-
function U() {
|
|
181
|
-
function X(x) {
|
|
182
|
-
d(function() {
|
|
183
|
-
C(x.detail);
|
|
141
|
+
ignoreTransitionContext: s,
|
|
142
|
+
expiration: c,
|
|
143
|
+
fetcher: u,
|
|
144
|
+
stale: a,
|
|
145
|
+
removeOnError: f,
|
|
146
|
+
fresh: l
|
|
147
|
+
} = e ?? {}, { isPending: m, startTransition: d } = me(), [h, b] = ce(), { query: T, expiration: D, subscribe: R } = w(e), E = v(
|
|
148
|
+
function() {
|
|
149
|
+
return s ?? n ?? !1;
|
|
150
|
+
},
|
|
151
|
+
[s, n]
|
|
152
|
+
), Q = v(
|
|
153
|
+
function() {
|
|
154
|
+
return E ? h : m ?? h;
|
|
155
|
+
},
|
|
156
|
+
[m, h, E]
|
|
157
|
+
), g = v(
|
|
158
|
+
function() {
|
|
159
|
+
return E ? b : d ?? b;
|
|
160
|
+
},
|
|
161
|
+
[d, b, E]
|
|
162
|
+
), y = v(
|
|
163
|
+
function() {
|
|
164
|
+
return o ?? r ?? !1;
|
|
165
|
+
},
|
|
166
|
+
[o, r]
|
|
167
|
+
), S = v(
|
|
168
|
+
function() {
|
|
169
|
+
return T(t, {
|
|
170
|
+
expiration: c,
|
|
171
|
+
fetcher: u,
|
|
172
|
+
stale: a,
|
|
173
|
+
removeOnError: f,
|
|
174
|
+
fresh: l
|
|
184
175
|
});
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
176
|
+
},
|
|
177
|
+
[T, t, c, u, a, f, l]
|
|
178
|
+
), [q, x] = _(L(S));
|
|
179
|
+
return O(
|
|
180
|
+
function() {
|
|
181
|
+
function M(p) {
|
|
182
|
+
g(function() {
|
|
183
|
+
x(p.detail);
|
|
191
184
|
});
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
d(function() {
|
|
201
|
-
C(x.detail);
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
function $(x) {
|
|
205
|
-
d(async function() {
|
|
206
|
-
const B = await x.detail;
|
|
207
|
-
d(function() {
|
|
208
|
-
C(B);
|
|
185
|
+
}
|
|
186
|
+
i(M, "onResolved");
|
|
187
|
+
function K(p) {
|
|
188
|
+
g(async function() {
|
|
189
|
+
const I = await p.detail;
|
|
190
|
+
g(function() {
|
|
191
|
+
x(I);
|
|
192
|
+
});
|
|
209
193
|
});
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
expiration: i,
|
|
216
|
-
fetcher: a,
|
|
217
|
-
stale: l,
|
|
218
|
-
removeOnError: c,
|
|
219
|
-
fresh: g
|
|
194
|
+
}
|
|
195
|
+
i(K, "onMutating");
|
|
196
|
+
function X(p) {
|
|
197
|
+
g(function() {
|
|
198
|
+
x(p.detail);
|
|
220
199
|
});
|
|
221
|
-
|
|
222
|
-
|
|
200
|
+
}
|
|
201
|
+
i(X, "onMutated");
|
|
202
|
+
function Z(p) {
|
|
203
|
+
g(function() {
|
|
204
|
+
x(p.detail);
|
|
223
205
|
});
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
206
|
+
}
|
|
207
|
+
i(Z, "onHydrated");
|
|
208
|
+
function k(p) {
|
|
209
|
+
g(async function() {
|
|
210
|
+
const I = await p.detail;
|
|
211
|
+
g(function() {
|
|
212
|
+
x(I);
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
i(k, "onRefetching");
|
|
217
|
+
function ee() {
|
|
218
|
+
y && g(async function() {
|
|
219
|
+
const p = await T(t, {
|
|
220
|
+
expiration: c,
|
|
221
|
+
fetcher: u,
|
|
222
|
+
stale: a,
|
|
223
|
+
removeOnError: f,
|
|
224
|
+
fresh: l
|
|
225
|
+
});
|
|
226
|
+
g(function() {
|
|
227
|
+
x(p);
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
i(ee, "onForgotten");
|
|
232
|
+
const te = R(t, "resolved", M), ne = R(t, "mutating", K), re = R(t, "mutated", X), oe = R(t, "hydrated", Z), ie = R(t, "refetching", k), se = R(t, "forgotten", ee);
|
|
233
|
+
return function() {
|
|
234
|
+
te(), ne(), re(), oe(), ie(), se();
|
|
235
|
+
};
|
|
236
|
+
},
|
|
237
|
+
[
|
|
238
|
+
T,
|
|
239
|
+
D,
|
|
240
|
+
R,
|
|
241
|
+
t,
|
|
242
|
+
y,
|
|
243
|
+
c,
|
|
244
|
+
u,
|
|
245
|
+
a,
|
|
246
|
+
f,
|
|
247
|
+
l,
|
|
248
|
+
g
|
|
249
|
+
]
|
|
250
|
+
), v(
|
|
251
|
+
function() {
|
|
252
|
+
return { data: q, isPending: Q };
|
|
253
|
+
},
|
|
254
|
+
[q, Q]
|
|
255
|
+
);
|
|
248
256
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
257
|
+
i(ge, "useQueryBasic");
|
|
258
|
+
function Ee(t, e) {
|
|
259
|
+
C("useQuery");
|
|
260
|
+
const r = ge(t, e), n = de(t, e), o = he(t, e);
|
|
261
|
+
return v(
|
|
262
|
+
function() {
|
|
263
|
+
return { ...r, ...n, ...o };
|
|
264
|
+
},
|
|
265
|
+
[r, n, o]
|
|
266
|
+
);
|
|
256
267
|
}
|
|
257
|
-
|
|
258
|
-
|
|
268
|
+
i(Ee, "useQuery");
|
|
269
|
+
function J(t, e) {
|
|
270
|
+
C("useQueryPrefetch");
|
|
271
|
+
const { query: r } = w(e);
|
|
272
|
+
O(
|
|
273
|
+
function() {
|
|
274
|
+
for (const n of t)
|
|
275
|
+
r(n);
|
|
276
|
+
},
|
|
277
|
+
[r, t]
|
|
278
|
+
);
|
|
259
279
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
280
|
+
i(J, "useQueryPrefetch");
|
|
281
|
+
var N = { exports: {} }, A = {};
|
|
282
|
+
/**
|
|
283
|
+
* @license React
|
|
284
|
+
* react-compiler-runtime.production.js
|
|
285
|
+
*
|
|
286
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the MIT license found in the
|
|
289
|
+
* LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/
|
|
291
|
+
var $;
|
|
292
|
+
function pe() {
|
|
293
|
+
if ($) return A;
|
|
294
|
+
$ = 1;
|
|
295
|
+
var t = V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
296
|
+
return A.c = function(e) {
|
|
297
|
+
return t.H.useMemoCache(e);
|
|
298
|
+
}, A;
|
|
266
299
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
300
|
+
i(pe, "requireReactCompilerRuntime_production");
|
|
301
|
+
var H = {};
|
|
302
|
+
/**
|
|
303
|
+
* @license React
|
|
304
|
+
* react-compiler-runtime.development.js
|
|
305
|
+
*
|
|
306
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the MIT license found in the
|
|
309
|
+
* LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/
|
|
311
|
+
var Y;
|
|
312
|
+
function ve() {
|
|
313
|
+
return Y || (Y = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
314
|
+
var t = V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
315
|
+
H.c = function(e) {
|
|
316
|
+
var r = t.H;
|
|
317
|
+
return r === null && console.error(
|
|
318
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
319
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
320
|
+
2. You might be breaking the Rules of Hooks
|
|
321
|
+
3. You might have more than one copy of React in the same app
|
|
322
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
323
|
+
), r.useMemoCache(e);
|
|
324
|
+
};
|
|
325
|
+
})()), H;
|
|
271
326
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
const
|
|
327
|
+
i(ve, "requireReactCompilerRuntime_development");
|
|
328
|
+
var B;
|
|
329
|
+
function be() {
|
|
330
|
+
return B || (B = 1, process.env.NODE_ENV === "production" ? N.exports = pe() : N.exports = ve()), N.exports;
|
|
331
|
+
}
|
|
332
|
+
i(be, "requireCompilerRuntime");
|
|
333
|
+
var F = be();
|
|
334
|
+
function _e(t) {
|
|
335
|
+
const e = F.c(12), {
|
|
336
|
+
children: r,
|
|
337
|
+
clearOnForget: n,
|
|
338
|
+
ignoreTransitionContext: o,
|
|
339
|
+
query: s
|
|
340
|
+
} = t;
|
|
341
|
+
let c;
|
|
342
|
+
e[0] !== s ? (c = s ?? le(), e[0] = s, e[1] = c) : c = e[1];
|
|
343
|
+
const u = c;
|
|
344
|
+
let a, f;
|
|
345
|
+
e[2] !== u ? (a = /* @__PURE__ */ i(function() {
|
|
346
|
+
const h = new BroadcastChannel("query");
|
|
347
|
+
u.configure({
|
|
348
|
+
broadcast: h
|
|
349
|
+
});
|
|
350
|
+
const b = u.subscribeBroadcast();
|
|
292
351
|
return function() {
|
|
293
|
-
|
|
352
|
+
b(), h.close();
|
|
294
353
|
};
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
354
|
+
}, "t2"), f = [u], e[2] = u, e[3] = a, e[4] = f) : (a = e[3], f = e[4]), O(a, f);
|
|
355
|
+
let l;
|
|
356
|
+
e[5] !== n || e[6] !== o || e[7] !== u ? (l = {
|
|
357
|
+
query: u,
|
|
358
|
+
clearOnForget: n,
|
|
359
|
+
ignoreTransitionContext: o
|
|
360
|
+
}, e[5] = n, e[6] = o, e[7] = u, e[8] = l) : l = e[8];
|
|
361
|
+
const m = l;
|
|
362
|
+
let d;
|
|
363
|
+
return e[9] !== r || e[10] !== m ? (d = /* @__PURE__ */ U(G, { value: m, children: r }), e[9] = r, e[10] = m, e[11] = d) : d = e[11], d;
|
|
302
364
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
365
|
+
i(_e, "QueryProvider");
|
|
366
|
+
function Oe(t) {
|
|
367
|
+
const e = F.c(6), {
|
|
368
|
+
children: r,
|
|
369
|
+
startTransition: n,
|
|
370
|
+
isPending: o
|
|
371
|
+
} = t;
|
|
372
|
+
let s;
|
|
373
|
+
e[0] !== o || e[1] !== n ? (s = {
|
|
374
|
+
startTransition: n,
|
|
375
|
+
isPending: o
|
|
376
|
+
}, e[0] = o, e[1] = n, e[2] = s) : s = e[2];
|
|
377
|
+
const c = s;
|
|
378
|
+
let u;
|
|
379
|
+
return e[3] !== r || e[4] !== c ? (u = /* @__PURE__ */ U(z, { value: c, children: r }), e[3] = r, e[4] = c, e[5] = u) : u = e[5], u;
|
|
309
380
|
}
|
|
310
|
-
|
|
311
|
-
|
|
381
|
+
i(Oe, "QueryTransition");
|
|
382
|
+
function Qe(t) {
|
|
383
|
+
const e = F.c(2), {
|
|
384
|
+
keys: r,
|
|
385
|
+
query: n,
|
|
386
|
+
children: o
|
|
387
|
+
} = t;
|
|
388
|
+
let s;
|
|
389
|
+
return e[0] !== n ? (s = {
|
|
390
|
+
query: n
|
|
391
|
+
}, e[0] = n, e[1] = s) : s = e[1], J(r, s), o;
|
|
312
392
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
const e =
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
393
|
+
i(Qe, "QueryPrefetch");
|
|
394
|
+
function ye(t) {
|
|
395
|
+
const e = F.c(12);
|
|
396
|
+
let r, n, o;
|
|
397
|
+
e[0] !== t ? ({
|
|
398
|
+
keys: n,
|
|
399
|
+
children: r,
|
|
400
|
+
...o
|
|
401
|
+
} = t, e[0] = t, e[1] = r, e[2] = n, e[3] = o) : (r = e[1], n = e[2], o = e[3]), J(n, o);
|
|
402
|
+
let s;
|
|
403
|
+
if (e[4] !== n || e[5] !== o) {
|
|
404
|
+
let a;
|
|
405
|
+
e[7] !== o ? (a = /* @__PURE__ */ i((f) => /* @__PURE__ */ U("link", { rel: "preload", href: f, as: "fetch", ...o }), "t22"), e[7] = o, e[8] = a) : a = e[8], s = n.map(a), e[4] = n, e[5] = o, e[6] = s;
|
|
406
|
+
} else
|
|
407
|
+
s = e[6];
|
|
408
|
+
const c = s;
|
|
409
|
+
let u;
|
|
410
|
+
return e[9] !== r || e[10] !== c ? (u = /* @__PURE__ */ ae(fe, { children: [
|
|
411
|
+
c,
|
|
322
412
|
r
|
|
323
|
-
] });
|
|
413
|
+
] }), e[9] = r, e[10] = c, e[11] = u) : u = e[11], u;
|
|
324
414
|
}
|
|
415
|
+
i(ye, "QueryPrefetchTags");
|
|
325
416
|
export {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
417
|
+
G as Context,
|
|
418
|
+
Qe as QueryPrefetch,
|
|
419
|
+
ye as QueryPrefetchTags,
|
|
420
|
+
_e as QueryProvider,
|
|
421
|
+
Oe as QueryTransition,
|
|
331
422
|
z as TransitionContext,
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
423
|
+
Ee as useQuery,
|
|
424
|
+
de as useQueryActions,
|
|
425
|
+
ge as useQueryBasic,
|
|
426
|
+
W as useQueryContext,
|
|
427
|
+
w as useQueryInstance,
|
|
337
428
|
J as useQueryPrefetch,
|
|
338
|
-
|
|
339
|
-
|
|
429
|
+
he as useQueryStatus,
|
|
430
|
+
me as useQueryTransitionContext
|
|
340
431
|
};
|
|
341
432
|
//# sourceMappingURL=query_react.js.map
|