@tanstack/solid-query-devtools 5.91.3 → 6.0.0-alpha.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/build/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var web = require('solid-js/web');
4
3
  var solidJs = require('solid-js');
5
4
  var solidQuery = require('@tanstack/solid-query');
6
5
  var queryDevtools = require('@tanstack/query-devtools');
@@ -15,6 +14,1044 @@ var __export = (target, all) => {
15
14
  __defProp(target, name, { get: all[name], enumerable: true });
16
15
  };
17
16
 
17
+ // ../../node_modules/.pnpm/@solidjs+signals@0.12.0/node_modules/@solidjs/signals/dist/prod.js
18
+ function actualInsertIntoHeap(e, t) {
19
+ const n = (e.i?.t ? e.i.u?.o : e.i?.o) ?? -1;
20
+ if (n >= e.o) e.o = n + 1;
21
+ const i = e.o;
22
+ const r = t.l[i];
23
+ if (r === void 0) t.l[i] = e;
24
+ else {
25
+ const t2 = r.T;
26
+ t2.S = e;
27
+ e.T = t2;
28
+ r.T = e;
29
+ }
30
+ if (i > t.R) t.R = i;
31
+ }
32
+ function insertIntoHeap(e, t) {
33
+ let n = e.O;
34
+ if (n & (REACTIVE_IN_HEAP | REACTIVE_RECOMPUTING_DEPS)) return;
35
+ if (n & REACTIVE_CHECK) {
36
+ e.O = n & -4 | REACTIVE_DIRTY | REACTIVE_IN_HEAP;
37
+ } else e.O = n | REACTIVE_IN_HEAP;
38
+ if (!(n & REACTIVE_IN_HEAP_HEIGHT)) actualInsertIntoHeap(e, t);
39
+ }
40
+ function insertIntoHeapHeight(e, t) {
41
+ let n = e.O;
42
+ if (n & (REACTIVE_IN_HEAP | REACTIVE_RECOMPUTING_DEPS | REACTIVE_IN_HEAP_HEIGHT)) return;
43
+ e.O = n | REACTIVE_IN_HEAP_HEIGHT;
44
+ actualInsertIntoHeap(e, t);
45
+ }
46
+ function deleteFromHeap(e, t) {
47
+ const n = e.O;
48
+ if (!(n & (REACTIVE_IN_HEAP | REACTIVE_IN_HEAP_HEIGHT))) return;
49
+ e.O = n & -25;
50
+ const i = e.o;
51
+ if (e.T === e) t.l[i] = void 0;
52
+ else {
53
+ const n2 = e.S;
54
+ const r = t.l[i];
55
+ const s = n2 ?? r;
56
+ if (e === r) t.l[i] = n2;
57
+ else e.T.S = n2;
58
+ s.T = e.T;
59
+ }
60
+ e.T = e;
61
+ e.S = void 0;
62
+ }
63
+ function runHeap(e, t) {
64
+ e._ = false;
65
+ for (e.N = 0; e.N <= e.R; e.N++) {
66
+ let n = e.l[e.N];
67
+ while (n !== void 0) {
68
+ if (n.O & REACTIVE_IN_HEAP) t(n);
69
+ else adjustHeight(n, e);
70
+ n = e.l[e.N];
71
+ }
72
+ }
73
+ e.R = 0;
74
+ }
75
+ function adjustHeight(e, t) {
76
+ deleteFromHeap(e, t);
77
+ let n = e.o;
78
+ for (let t2 = e.C; t2; t2 = t2.D) {
79
+ const e2 = t2.V;
80
+ const i = e2.m || e2;
81
+ if (i.L && i.o >= n) n = i.o + 1;
82
+ }
83
+ if (e.o !== n) {
84
+ e.o = n;
85
+ for (let n2 = e.I; n2 !== null; n2 = n2.p) {
86
+ insertIntoHeapHeight(n2.h, t);
87
+ }
88
+ }
89
+ }
90
+ function runLaneEffects(e) {
91
+ for (const t of activeLanes) {
92
+ if (t.k || t.U.size > 0) continue;
93
+ const n = t.W[e - 1];
94
+ if (n.length) {
95
+ t.W[e - 1] = [];
96
+ runQueue(n, e);
97
+ }
98
+ }
99
+ }
100
+ function schedule() {
101
+ if (scheduled) return;
102
+ scheduled = true;
103
+ if (!globalQueue.H && !projectionWriteActive) queueMicrotask(flush);
104
+ }
105
+ function insertSubs(e, t = false) {
106
+ const n = e.ie || currentOptimisticLane;
107
+ const i = e.re !== void 0;
108
+ for (let r = e.I; r !== null; r = r.p) {
109
+ if (i && r.h.se) {
110
+ r.h.O |= REACTIVE_SNAPSHOT_STALE;
111
+ continue;
112
+ }
113
+ if (t && n) {
114
+ r.h.O |= REACTIVE_OPTIMISTIC_DIRTY;
115
+ assignOrMergeLane(r.h, n);
116
+ } else if (t) {
117
+ r.h.O |= REACTIVE_OPTIMISTIC_DIRTY;
118
+ r.h.ie = void 0;
119
+ }
120
+ const e2 = r.h;
121
+ if (e2.oe === EFFECT_TRACKED) {
122
+ if (!e2.ue) {
123
+ e2.ue = true;
124
+ e2.ce.enqueue(EFFECT_USER, e2.le);
125
+ }
126
+ continue;
127
+ }
128
+ const s = r.h.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
129
+ if (s.N > r.h.o) s.N = r.h.o;
130
+ insertIntoHeap(r.h, s);
131
+ }
132
+ }
133
+ function finalizePureQueue(e = null, t = false) {
134
+ let n = !t;
135
+ if (!t) checkBoundaryChildren(globalQueue);
136
+ if (dirtyQueue.R >= dirtyQueue.N) runHeap(dirtyQueue, GlobalQueue.K);
137
+ if (n) {
138
+ const t2 = globalQueue.F;
139
+ for (let e2 = 0; e2 < t2.length; e2++) {
140
+ const n3 = t2[e2];
141
+ if (n3.ae !== NOT_PENDING) {
142
+ n3.fe = n3.ae;
143
+ n3.ae = NOT_PENDING;
144
+ if (n3.oe && n3.oe !== EFFECT_TRACKED) n3.ue = true;
145
+ }
146
+ if (!(n3.Ee & STATUS_PENDING)) n3.Ee &= ~STATUS_UNINITIALIZED;
147
+ if (n3.L) GlobalQueue.Y(n3, false, true);
148
+ }
149
+ t2.length = 0;
150
+ const n2 = e ? e.$ : globalQueue.$;
151
+ for (let e2 = 0; e2 < n2.length; e2++) {
152
+ const t3 = n2[e2];
153
+ const i2 = t3.ae;
154
+ t3.ie = void 0;
155
+ if (i2 !== NOT_PENDING && t3.fe !== i2) {
156
+ t3.fe = i2;
157
+ insertSubs(t3, true);
158
+ }
159
+ t3.ae = NOT_PENDING;
160
+ t3.ne = null;
161
+ }
162
+ n2.length = 0;
163
+ const i = e ? e.j : globalQueue.j;
164
+ if (GlobalQueue.Z && i.size) {
165
+ for (const e2 of i) {
166
+ GlobalQueue.Z(e2);
167
+ }
168
+ i.clear();
169
+ schedule();
170
+ }
171
+ for (const t3 of activeLanes) {
172
+ const n3 = e ? t3.ne === e : !t3.ne;
173
+ if (!n3) continue;
174
+ if (!t3.k) {
175
+ if (t3.W[0].length) runQueue(t3.W[0], EFFECT_RENDER);
176
+ if (t3.W[1].length) runQueue(t3.W[1], EFFECT_USER);
177
+ }
178
+ if (t3.Te.ie === t3) t3.Te.ie = void 0;
179
+ t3.U.clear();
180
+ t3.W[0].length = 0;
181
+ t3.W[1].length = 0;
182
+ activeLanes.delete(t3);
183
+ signalLanes.delete(t3.Te);
184
+ }
185
+ }
186
+ }
187
+ function checkBoundaryChildren(e) {
188
+ for (const t of e.M) {
189
+ t.checkSources?.();
190
+ checkBoundaryChildren(t);
191
+ }
192
+ }
193
+ function reassignPendingTransition(e) {
194
+ for (let t = 0; t < e.length; t++) {
195
+ e[t].ne = activeTransition;
196
+ }
197
+ }
198
+ function flush() {
199
+ while (scheduled) {
200
+ globalQueue.flush();
201
+ }
202
+ }
203
+ function runQueue(e, t) {
204
+ for (let n = 0; n < e.length; n++) e[n](t);
205
+ }
206
+ function transitionComplete(e) {
207
+ if (e.te) return true;
208
+ if (e.ee.length) return false;
209
+ let t = true;
210
+ for (let n = 0; n < e.q.length; n++) {
211
+ const i = e.q[n];
212
+ if (i.Ee & STATUS_PENDING && i.X?.source === i) {
213
+ t = false;
214
+ break;
215
+ }
216
+ }
217
+ t && (e.te = true);
218
+ return t;
219
+ }
220
+ function currentTransition(e) {
221
+ while (e.te && typeof e.te === "object") e = e.te;
222
+ return e;
223
+ }
224
+ function runInTransition(e, t) {
225
+ const n = activeTransition;
226
+ try {
227
+ activeTransition = currentTransition(e);
228
+ return t();
229
+ } finally {
230
+ activeTransition = n;
231
+ }
232
+ }
233
+ function getOrCreateLane(e) {
234
+ let t = signalLanes.get(e);
235
+ if (t) {
236
+ return findLane(t);
237
+ }
238
+ const n = e.de;
239
+ const i = n?.ie ? findLane(n.ie) : null;
240
+ t = { Te: e, U: /* @__PURE__ */ new Set(), W: [[], []], k: null, ne: activeTransition, Se: i };
241
+ signalLanes.set(e, t);
242
+ activeLanes.add(t);
243
+ e.Re = e.Oe || 0;
244
+ return t;
245
+ }
246
+ function findLane(e) {
247
+ while (e.k) e = e.k;
248
+ return e;
249
+ }
250
+ function mergeLanes(e, t) {
251
+ e = findLane(e);
252
+ t = findLane(t);
253
+ if (e === t) return e;
254
+ t.k = e;
255
+ for (const n of t.U) e.U.add(n);
256
+ e.W[0].push(...t.W[0]);
257
+ e.W[1].push(...t.W[1]);
258
+ return e;
259
+ }
260
+ function resolveLane(e) {
261
+ const t = e.ie;
262
+ if (!t) return void 0;
263
+ const n = findLane(t);
264
+ if (activeLanes.has(n)) return n;
265
+ e.ie = void 0;
266
+ return void 0;
267
+ }
268
+ function hasActiveOverride(e) {
269
+ return !!(e._e && e.ae !== NOT_PENDING);
270
+ }
271
+ function assignOrMergeLane(e, t) {
272
+ const n = findLane(t);
273
+ const i = e.ie;
274
+ if (i) {
275
+ if (i.k) {
276
+ e.ie = t;
277
+ return;
278
+ }
279
+ const r = findLane(i);
280
+ if (activeLanes.has(r)) {
281
+ if (r !== n && !hasActiveOverride(e)) {
282
+ if (n.Se && findLane(n.Se) === r) {
283
+ e.ie = t;
284
+ } else if (r.Se && findLane(r.Se) === n) ;
285
+ else mergeLanes(n, r);
286
+ }
287
+ return;
288
+ }
289
+ }
290
+ e.ie = t;
291
+ }
292
+ function handleAsync(e, t, n) {
293
+ const i = typeof t === "object" && t !== null;
294
+ const r = i && untrack(() => t[Symbol.asyncIterator]);
295
+ const s = !r && i && untrack(() => typeof t.then === "function");
296
+ if (!s && !r) {
297
+ e.Ie = null;
298
+ return t;
299
+ }
300
+ e.Ie = t;
301
+ let o;
302
+ const handleError = (n2) => {
303
+ if (e.Ie !== t) return;
304
+ globalQueue.initTransition(e.ne);
305
+ notifyStatus(e, n2 instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR, n2);
306
+ e.J = clock;
307
+ };
308
+ const asyncWrite = (i2, r2) => {
309
+ if (e.Ie !== t) return;
310
+ if (e.O & (REACTIVE_DIRTY | REACTIVE_OPTIMISTIC_DIRTY)) return;
311
+ globalQueue.initTransition(e.ne);
312
+ clearStatus(e);
313
+ const s2 = resolveLane(e);
314
+ if (s2) s2.U.delete(e);
315
+ if (e._e) {
316
+ const t2 = e.ae !== NOT_PENDING;
317
+ if (e.L) e.ae = i2;
318
+ if (!t2) {
319
+ e.fe = i2;
320
+ insertSubs(e);
321
+ }
322
+ e.J = clock;
323
+ } else if (s2) {
324
+ const t2 = e.fe;
325
+ const n2 = e.pe;
326
+ if (!n2 || !n2(i2, t2)) {
327
+ e.fe = i2;
328
+ e.J = clock;
329
+ if (e.he) {
330
+ setSignal(e.he, i2);
331
+ }
332
+ insertSubs(e, true);
333
+ }
334
+ } else {
335
+ setSignal(e, () => i2);
336
+ }
337
+ schedule();
338
+ flush();
339
+ r2?.();
340
+ };
341
+ if (s) {
342
+ let n2 = false, i2 = true;
343
+ t.then(
344
+ (e2) => {
345
+ if (i2) {
346
+ o = e2;
347
+ n2 = true;
348
+ } else asyncWrite(e2);
349
+ },
350
+ (e2) => {
351
+ if (!i2) handleError(e2);
352
+ }
353
+ );
354
+ i2 = false;
355
+ if (!n2) {
356
+ globalQueue.initTransition(e.ne);
357
+ throw new NotReadyError(context);
358
+ }
359
+ }
360
+ if (r) {
361
+ const n2 = t[Symbol.asyncIterator]();
362
+ let i2 = false;
363
+ const iterate = () => {
364
+ let e2, t2 = false, r3 = true;
365
+ n2.next().then(
366
+ (n3) => {
367
+ if (r3) {
368
+ e2 = n3;
369
+ t2 = true;
370
+ } else if (!n3.done) asyncWrite(n3.value, iterate);
371
+ else {
372
+ schedule();
373
+ flush();
374
+ }
375
+ },
376
+ (e3) => {
377
+ if (!r3) handleError(e3);
378
+ }
379
+ );
380
+ r3 = false;
381
+ if (t2 && !e2.done) {
382
+ o = e2.value;
383
+ i2 = true;
384
+ return iterate();
385
+ }
386
+ return t2 && e2.done;
387
+ };
388
+ const r2 = iterate();
389
+ if (!i2 && !r2) {
390
+ globalQueue.initTransition(e.ne);
391
+ throw new NotReadyError(context);
392
+ }
393
+ }
394
+ return o;
395
+ }
396
+ function clearStatus(e) {
397
+ e.Ee = e.Ee & STATUS_UNINITIALIZED;
398
+ e.X = null;
399
+ updatePendingSignal(e);
400
+ e.Ae?.();
401
+ }
402
+ function notifyStatus(e, t, n, i, r) {
403
+ if (t === STATUS_ERROR && !(n instanceof StatusError) && !(n instanceof NotReadyError))
404
+ n = new StatusError(e, n);
405
+ const s = n instanceof NotReadyError && n.source === e;
406
+ const o = t === STATUS_PENDING && e._e && !s;
407
+ const u = o && hasActiveOverride(e);
408
+ if (!i) {
409
+ e.Ee = t | (t !== STATUS_ERROR ? e.Ee & STATUS_UNINITIALIZED : 0);
410
+ e.X = n;
411
+ updatePendingSignal(e);
412
+ }
413
+ if (r && !i) {
414
+ assignOrMergeLane(e, r);
415
+ }
416
+ if (u && activeTransition && n instanceof NotReadyError) {
417
+ const e2 = n.source;
418
+ if (!activeTransition.q.includes(e2)) {
419
+ activeTransition.q.push(e2);
420
+ }
421
+ }
422
+ const c = i || u;
423
+ const l = i || o ? void 0 : r;
424
+ if (e.Ae) {
425
+ if (c) {
426
+ e.Ae(t, n);
427
+ } else {
428
+ e.Ae();
429
+ }
430
+ return;
431
+ }
432
+ for (let i2 = e.I; i2 !== null; i2 = i2.p) {
433
+ i2.h.J = clock;
434
+ if (i2.h.X !== n) {
435
+ !i2.h.ne && globalQueue.F.push(i2.h);
436
+ notifyStatus(i2.h, t, n, c, l);
437
+ }
438
+ }
439
+ for (let i2 = e.A; i2 !== null; i2 = i2.P) {
440
+ for (let e2 = i2.I; e2 !== null; e2 = e2.p) {
441
+ e2.h.J = clock;
442
+ if (e2.h.X !== n) {
443
+ !e2.h.ne && globalQueue.F.push(e2.h);
444
+ notifyStatus(e2.h, t, n, c, l);
445
+ }
446
+ }
447
+ }
448
+ }
449
+ function unlinkSubs(e) {
450
+ const t = e.V;
451
+ const n = e.D;
452
+ const i = e.p;
453
+ const r = e.Pe;
454
+ if (i !== null) i.Pe = r;
455
+ else t.Ne = r;
456
+ if (r !== null) r.p = i;
457
+ else {
458
+ t.I = i;
459
+ if (i === null) {
460
+ t.ge?.();
461
+ t.L && !t.Ce && !(t.O & REACTIVE_ZOMBIE) && unobserved(t);
462
+ }
463
+ }
464
+ return n;
465
+ }
466
+ function unobserved(e) {
467
+ deleteFromHeap(e, e.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
468
+ let t = e.C;
469
+ while (t !== null) {
470
+ t = unlinkSubs(t);
471
+ }
472
+ e.C = null;
473
+ disposeChildren(e, true);
474
+ }
475
+ function markDisposal(e) {
476
+ let t = e.De;
477
+ while (t) {
478
+ t.O |= REACTIVE_ZOMBIE;
479
+ if (t.O & REACTIVE_IN_HEAP) {
480
+ deleteFromHeap(t, dirtyQueue);
481
+ insertIntoHeap(t, zombieQueue);
482
+ }
483
+ markDisposal(t);
484
+ t = t.ve;
485
+ }
486
+ }
487
+ function disposeChildren(e, t = false, n) {
488
+ if (e.O & REACTIVE_DISPOSED) return;
489
+ if (t) e.O = REACTIVE_DISPOSED;
490
+ let i = n ? e.be : e.De;
491
+ while (i) {
492
+ const e2 = i.ve;
493
+ if (i.C) {
494
+ const e3 = i;
495
+ deleteFromHeap(e3, e3.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
496
+ let t2 = e3.C;
497
+ do {
498
+ t2 = unlinkSubs(t2);
499
+ } while (t2 !== null);
500
+ e3.C = null;
501
+ e3.ye = null;
502
+ }
503
+ disposeChildren(i, true);
504
+ i = e2;
505
+ }
506
+ if (n) {
507
+ e.be = null;
508
+ } else {
509
+ e.De = null;
510
+ e.ve = null;
511
+ e.we = 0;
512
+ }
513
+ runDisposal(e, n);
514
+ }
515
+ function runDisposal(e, t) {
516
+ let n = t ? e.Ve : e.me;
517
+ if (!n) return;
518
+ if (Array.isArray(n)) {
519
+ for (let e2 = 0; e2 < n.length; e2++) {
520
+ const t2 = n[e2];
521
+ t2.call(t2);
522
+ }
523
+ } else {
524
+ n.call(n);
525
+ }
526
+ t ? e.Ve = null : e.me = null;
527
+ }
528
+ function recompute(e, t = false) {
529
+ const n = e.oe;
530
+ if (!t) {
531
+ if (e.ne && (!n || activeTransition) && activeTransition !== e.ne)
532
+ globalQueue.initTransition(e.ne);
533
+ deleteFromHeap(e, e.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
534
+ if (e.ne || n === EFFECT_TRACKED) disposeChildren(e);
535
+ else {
536
+ markDisposal(e);
537
+ e.Ve = e.me;
538
+ e.be = e.De;
539
+ e.me = null;
540
+ e.De = null;
541
+ e.we = 0;
542
+ }
543
+ }
544
+ const i = !!(e.O & REACTIVE_OPTIMISTIC_DIRTY);
545
+ const r = hasActiveOverride(e);
546
+ const s = !!(e.Ee & STATUS_PENDING);
547
+ const o = context;
548
+ context = e;
549
+ e.ye = null;
550
+ e.O = REACTIVE_RECOMPUTING_DEPS;
551
+ e.J = clock;
552
+ let u = e.ae === NOT_PENDING ? e.fe : e.ae;
553
+ let c = e.o;
554
+ let l = tracking;
555
+ let a = currentOptimisticLane;
556
+ tracking = true;
557
+ if (i) {
558
+ const t2 = resolveLane(e);
559
+ if (t2) currentOptimisticLane = t2;
560
+ }
561
+ try {
562
+ u = handleAsync(e, e.L(u));
563
+ clearStatus(e);
564
+ const t2 = resolveLane(e);
565
+ if (t2) {
566
+ t2.U.delete(e);
567
+ updatePendingSignal(t2.Te);
568
+ }
569
+ } catch (t2) {
570
+ if (t2 instanceof NotReadyError && currentOptimisticLane) {
571
+ const t3 = findLane(currentOptimisticLane);
572
+ if (t3.Te !== e) {
573
+ t3.U.add(e);
574
+ e.ie = t3;
575
+ updatePendingSignal(t3.Te);
576
+ }
577
+ }
578
+ notifyStatus(
579
+ e,
580
+ t2 instanceof NotReadyError ? STATUS_PENDING : STATUS_ERROR,
581
+ t2,
582
+ void 0,
583
+ t2 instanceof NotReadyError ? e.ie : void 0
584
+ );
585
+ } finally {
586
+ tracking = l;
587
+ e.O = REACTIVE_NONE | (t ? e.O & REACTIVE_SNAPSHOT_STALE : 0);
588
+ context = o;
589
+ }
590
+ if (!e.X) {
591
+ const o2 = e.ye;
592
+ let l2 = o2 !== null ? o2.D : e.C;
593
+ if (l2 !== null) {
594
+ do {
595
+ l2 = unlinkSubs(l2);
596
+ } while (l2 !== null);
597
+ if (o2 !== null) o2.D = null;
598
+ else e.C = null;
599
+ }
600
+ const a2 = r ? e.fe : e.ae === NOT_PENDING ? e.fe : e.ae;
601
+ const f = !e.pe || !e.pe(a2, u);
602
+ if (f) {
603
+ const o3 = r ? e.fe : void 0;
604
+ if (t || n && activeTransition !== e.ne || i) e.fe = u;
605
+ else e.ae = u;
606
+ if (r && !i && s) {
607
+ const t2 = e.Oe || 0;
608
+ const n2 = e.Re || 0;
609
+ if (t2 <= n2) e.fe = u;
610
+ }
611
+ if (!r || i || e.fe !== o3) {
612
+ insertSubs(e, i || r);
613
+ }
614
+ } else if (r) {
615
+ e.ae = u;
616
+ } else if (e.o != c) {
617
+ for (let t2 = e.I; t2 !== null; t2 = t2.p) {
618
+ insertIntoHeapHeight(t2.h, t2.h.O & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
619
+ }
620
+ }
621
+ }
622
+ currentOptimisticLane = a;
623
+ (!t || e.Ee & STATUS_PENDING) && !e.ne && !(activeTransition && e._e) && globalQueue.F.push(e);
624
+ e.ne && n && activeTransition !== e.ne && runInTransition(e.ne, () => recompute(e));
625
+ }
626
+ function untrack(e, t) {
627
+ if (!tracking && true) return e();
628
+ const n = tracking;
629
+ tracking = false;
630
+ try {
631
+ return e();
632
+ } finally {
633
+ tracking = n;
634
+ }
635
+ }
636
+ function setSignal(e, t) {
637
+ if (e.ne && activeTransition !== e.ne) globalQueue.initTransition(e.ne);
638
+ const n = e._e && !projectionWriteActive;
639
+ const i = n ? e.fe : e.ae === NOT_PENDING ? e.fe : e.ae;
640
+ if (typeof t === "function") t = t(i);
641
+ const r = !e.pe || !e.pe(i, t) || !!(e.Ee & STATUS_UNINITIALIZED);
642
+ if (!r) {
643
+ if (n && e.ae !== NOT_PENDING && e.L) {
644
+ insertSubs(e, true);
645
+ schedule();
646
+ }
647
+ return t;
648
+ }
649
+ if (n) {
650
+ const n2 = globalQueue.$.includes(e);
651
+ if (e.ne && n2) {
652
+ globalQueue.initTransition(e.ne);
653
+ }
654
+ if (e.ae === NOT_PENDING) {
655
+ e.ae = e.fe;
656
+ }
657
+ if (!n2) {
658
+ globalQueue.$.push(e);
659
+ }
660
+ e.Oe = (e.Oe || 0) + 1;
661
+ const i2 = getOrCreateLane(e);
662
+ e.ie = i2;
663
+ e.fe = t;
664
+ } else {
665
+ if (e.ae === NOT_PENDING) globalQueue.F.push(e);
666
+ e.ae = t;
667
+ }
668
+ updatePendingSignal(e);
669
+ if (e.he) {
670
+ setSignal(e.he, t);
671
+ }
672
+ e.J = clock;
673
+ insertSubs(e, n);
674
+ schedule();
675
+ return t;
676
+ }
677
+ function computePendingState(e) {
678
+ const t = e;
679
+ if (e._e && e.ae !== NOT_PENDING) {
680
+ if (t.Ee & STATUS_PENDING && !(t.Ee & STATUS_UNINITIALIZED)) return true;
681
+ if (e.de) {
682
+ const t2 = e.ie ? findLane(e.ie) : null;
683
+ return !!(t2 && t2.U.size > 0);
684
+ }
685
+ return true;
686
+ }
687
+ if (e.ae !== NOT_PENDING && !(t.Ee & STATUS_UNINITIALIZED)) return true;
688
+ return !!(t.Ee & STATUS_PENDING && !(t.Ee & STATUS_UNINITIALIZED));
689
+ }
690
+ function updatePendingSignal(e) {
691
+ if (e.Me) {
692
+ const t = computePendingState(e);
693
+ const n = e.Me;
694
+ setSignal(n, t);
695
+ if (!t && n.ie) {
696
+ const t2 = resolveLane(e);
697
+ if (t2 && t2.U.size > 0) {
698
+ const e2 = findLane(n.ie);
699
+ if (e2 !== t2) {
700
+ mergeLanes(t2, e2);
701
+ }
702
+ }
703
+ signalLanes.delete(n);
704
+ n.ie = void 0;
705
+ }
706
+ }
707
+ }
708
+ function isWrappable(e) {
709
+ return e != null && typeof e === "object" && !Object.isFrozen(e);
710
+ }
711
+ function updatePath(e, t, n = 0) {
712
+ let i, r = e;
713
+ if (n < t.length - 1) {
714
+ i = t[n];
715
+ const s2 = typeof i;
716
+ const o = Array.isArray(e);
717
+ if (Array.isArray(i)) {
718
+ for (let r2 = 0; r2 < i.length; r2++) {
719
+ t[n] = i[r2];
720
+ updatePath(e, t, n);
721
+ }
722
+ t[n] = i;
723
+ return;
724
+ } else if (o && s2 === "function") {
725
+ for (let r2 = 0; r2 < e.length; r2++) {
726
+ if (i(e[r2], r2)) {
727
+ t[n] = r2;
728
+ updatePath(e, t, n);
729
+ }
730
+ }
731
+ t[n] = i;
732
+ return;
733
+ } else if (o && s2 === "object") {
734
+ const { from: r2 = 0, to: s3 = e.length - 1, by: o2 = 1 } = i;
735
+ for (let i2 = r2; i2 <= s3; i2 += o2) {
736
+ t[n] = i2;
737
+ updatePath(e, t, n);
738
+ }
739
+ t[n] = i;
740
+ return;
741
+ } else if (n < t.length - 2) {
742
+ updatePath(e[i], t, n + 1);
743
+ return;
744
+ }
745
+ r = e[i];
746
+ }
747
+ let s = t[t.length - 1];
748
+ if (typeof s === "function") {
749
+ s = s(r);
750
+ if (s === r) return;
751
+ }
752
+ if (i === void 0 && s == void 0) return;
753
+ if (s === DELETE) {
754
+ delete e[i];
755
+ } else if (i === void 0 || isWrappable(r) && isWrappable(s) && !Array.isArray(s)) {
756
+ const t2 = i !== void 0 ? e[i] : e;
757
+ const n2 = Object.keys(s);
758
+ for (let e2 = 0; e2 < n2.length; e2++) t2[n2[e2]] = s[n2[e2]];
759
+ } else {
760
+ e[i] = s;
761
+ }
762
+ }
763
+ var NotReadyError, StatusError, REACTIVE_NONE, REACTIVE_CHECK, REACTIVE_DIRTY, REACTIVE_RECOMPUTING_DEPS, REACTIVE_IN_HEAP, REACTIVE_IN_HEAP_HEIGHT, REACTIVE_ZOMBIE, REACTIVE_DISPOSED, REACTIVE_OPTIMISTIC_DIRTY, REACTIVE_SNAPSHOT_STALE, STATUS_PENDING, STATUS_ERROR, STATUS_UNINITIALIZED, EFFECT_RENDER, EFFECT_USER, EFFECT_TRACKED, NOT_PENDING, transitions, dirtyQueue, zombieQueue, clock, activeTransition, scheduled, projectionWriteActive, Queue, GlobalQueue, globalQueue, signalLanes, activeLanes, tracking, context, currentOptimisticLane, DELETE;
764
+ var init_prod = __esm({
765
+ "../../node_modules/.pnpm/@solidjs+signals@0.12.0/node_modules/@solidjs/signals/dist/prod.js"() {
766
+ NotReadyError = class extends Error {
767
+ source;
768
+ constructor(e) {
769
+ super();
770
+ this.source = e;
771
+ }
772
+ };
773
+ StatusError = class extends Error {
774
+ source;
775
+ constructor(e, t) {
776
+ super(t instanceof Error ? t.message : String(t), { cause: t });
777
+ this.source = e;
778
+ }
779
+ };
780
+ REACTIVE_NONE = 0;
781
+ REACTIVE_CHECK = 1 << 0;
782
+ REACTIVE_DIRTY = 1 << 1;
783
+ REACTIVE_RECOMPUTING_DEPS = 1 << 2;
784
+ REACTIVE_IN_HEAP = 1 << 3;
785
+ REACTIVE_IN_HEAP_HEIGHT = 1 << 4;
786
+ REACTIVE_ZOMBIE = 1 << 5;
787
+ REACTIVE_DISPOSED = 1 << 6;
788
+ REACTIVE_OPTIMISTIC_DIRTY = 1 << 7;
789
+ REACTIVE_SNAPSHOT_STALE = 1 << 8;
790
+ STATUS_PENDING = 1 << 0;
791
+ STATUS_ERROR = 1 << 1;
792
+ STATUS_UNINITIALIZED = 1 << 2;
793
+ EFFECT_RENDER = 1;
794
+ EFFECT_USER = 2;
795
+ EFFECT_TRACKED = 3;
796
+ NOT_PENDING = {};
797
+ transitions = /* @__PURE__ */ new Set();
798
+ dirtyQueue = { l: new Array(2e3).fill(void 0), _: false, N: 0, R: 0 };
799
+ zombieQueue = { l: new Array(2e3).fill(void 0), _: false, N: 0, R: 0 };
800
+ clock = 0;
801
+ activeTransition = null;
802
+ scheduled = false;
803
+ projectionWriteActive = false;
804
+ Queue = class {
805
+ i = null;
806
+ G = [[], []];
807
+ M = [];
808
+ created = clock;
809
+ addChild(e) {
810
+ this.M.push(e);
811
+ e.i = this;
812
+ }
813
+ removeChild(e) {
814
+ const t = this.M.indexOf(e);
815
+ if (t >= 0) {
816
+ this.M.splice(t, 1);
817
+ e.i = null;
818
+ }
819
+ }
820
+ notify(e, t, n, i) {
821
+ if (this.i) return this.i.notify(e, t, n, i);
822
+ return false;
823
+ }
824
+ run(e) {
825
+ if (this.G[e - 1].length) {
826
+ const t = this.G[e - 1];
827
+ this.G[e - 1] = [];
828
+ runQueue(t, e);
829
+ }
830
+ for (let t = 0; t < this.M.length; t++) this.M[t].run?.(e);
831
+ }
832
+ enqueue(e, t) {
833
+ if (e) {
834
+ if (currentOptimisticLane) {
835
+ const n = findLane(currentOptimisticLane);
836
+ n.W[e - 1].push(t);
837
+ } else {
838
+ this.G[e - 1].push(t);
839
+ }
840
+ }
841
+ schedule();
842
+ }
843
+ stashQueues(e) {
844
+ e.G[0].push(...this.G[0]);
845
+ e.G[1].push(...this.G[1]);
846
+ this.G = [[], []];
847
+ for (let t = 0; t < this.M.length; t++) {
848
+ let n = this.M[t];
849
+ let i = e.M[t];
850
+ if (!i) {
851
+ i = { G: [[], []], M: [] };
852
+ e.M[t] = i;
853
+ }
854
+ n.stashQueues(i);
855
+ }
856
+ }
857
+ restoreQueues(e) {
858
+ this.G[0].push(...e.G[0]);
859
+ this.G[1].push(...e.G[1]);
860
+ for (let t = 0; t < e.M.length; t++) {
861
+ const n = e.M[t];
862
+ let i = this.M[t];
863
+ if (i) i.restoreQueues(n);
864
+ }
865
+ }
866
+ };
867
+ GlobalQueue = class _GlobalQueue extends Queue {
868
+ H = false;
869
+ F = [];
870
+ $ = [];
871
+ j = /* @__PURE__ */ new Set();
872
+ static K;
873
+ static Y;
874
+ static Z = null;
875
+ flush() {
876
+ if (this.H) return;
877
+ this.H = true;
878
+ try {
879
+ runHeap(dirtyQueue, _GlobalQueue.K);
880
+ if (activeTransition) {
881
+ const e = transitionComplete(activeTransition);
882
+ if (!e) {
883
+ let e2 = activeTransition;
884
+ runHeap(zombieQueue, _GlobalQueue.K);
885
+ this.F = [];
886
+ this.$ = [];
887
+ this.j = /* @__PURE__ */ new Set();
888
+ runLaneEffects(EFFECT_RENDER);
889
+ runLaneEffects(EFFECT_USER);
890
+ this.stashQueues(activeTransition.B);
891
+ clock++;
892
+ scheduled = dirtyQueue.R >= dirtyQueue.N;
893
+ reassignPendingTransition(activeTransition.F);
894
+ activeTransition = null;
895
+ finalizePureQueue(null, true);
896
+ return;
897
+ }
898
+ this.F !== activeTransition.F && this.F.push(...activeTransition.F);
899
+ this.restoreQueues(activeTransition.B);
900
+ transitions.delete(activeTransition);
901
+ const t = activeTransition;
902
+ activeTransition = null;
903
+ reassignPendingTransition(this.F);
904
+ finalizePureQueue(t);
905
+ } else {
906
+ if (transitions.size) runHeap(zombieQueue, _GlobalQueue.K);
907
+ finalizePureQueue();
908
+ }
909
+ clock++;
910
+ scheduled = dirtyQueue.R >= dirtyQueue.N;
911
+ runLaneEffects(EFFECT_RENDER);
912
+ this.run(EFFECT_RENDER);
913
+ runLaneEffects(EFFECT_USER);
914
+ this.run(EFFECT_USER);
915
+ } finally {
916
+ this.H = false;
917
+ }
918
+ }
919
+ notify(e, t, n, i) {
920
+ if (t & STATUS_PENDING) {
921
+ if (n & STATUS_PENDING) {
922
+ const t2 = i !== void 0 ? i : e.X;
923
+ if (activeTransition && t2 && !activeTransition.q.includes(t2.source)) {
924
+ activeTransition.q.push(t2.source);
925
+ schedule();
926
+ }
927
+ }
928
+ return true;
929
+ }
930
+ return false;
931
+ }
932
+ initTransition(e) {
933
+ if (e) e = currentTransition(e);
934
+ if (e && e === activeTransition) return;
935
+ if (!e && activeTransition && activeTransition.J === clock) return;
936
+ if (!activeTransition) {
937
+ activeTransition = e ?? {
938
+ J: clock,
939
+ F: [],
940
+ q: [],
941
+ $: [],
942
+ j: /* @__PURE__ */ new Set(),
943
+ ee: [],
944
+ B: { G: [[], []], M: [] },
945
+ te: false
946
+ };
947
+ } else if (e) {
948
+ const t = activeTransition;
949
+ t.te = e;
950
+ e.ee.push(...t.ee);
951
+ for (const n of activeLanes) {
952
+ if (n.ne === t) n.ne = e;
953
+ }
954
+ e.$.push(...t.$);
955
+ for (const n of t.j) {
956
+ e.j.add(n);
957
+ }
958
+ transitions.delete(t);
959
+ activeTransition = e;
960
+ }
961
+ transitions.add(activeTransition);
962
+ activeTransition.J = clock;
963
+ for (let e2 = 0; e2 < this.F.length; e2++) {
964
+ const t = this.F[e2];
965
+ t.ne = activeTransition;
966
+ activeTransition.F.push(t);
967
+ }
968
+ this.F = activeTransition.F;
969
+ for (let e2 = 0; e2 < this.$.length; e2++) {
970
+ const t = this.$[e2];
971
+ t.ne = activeTransition;
972
+ activeTransition.$.push(t);
973
+ }
974
+ this.$ = activeTransition.$;
975
+ for (const e2 of activeLanes) {
976
+ if (!e2.ne) e2.ne = activeTransition;
977
+ }
978
+ for (const e2 of this.j) activeTransition.j.add(e2);
979
+ this.j = activeTransition.j;
980
+ }
981
+ };
982
+ globalQueue = new GlobalQueue();
983
+ signalLanes = /* @__PURE__ */ new WeakMap();
984
+ activeLanes = /* @__PURE__ */ new Set();
985
+ GlobalQueue.K = recompute;
986
+ GlobalQueue.Y = disposeChildren;
987
+ tracking = false;
988
+ context = null;
989
+ currentOptimisticLane = null;
990
+ DELETE = /* @__PURE__ */ Symbol(0);
991
+ Object.assign(
992
+ function storePath2(...e) {
993
+ return (t) => {
994
+ updatePath(t, e);
995
+ };
996
+ },
997
+ { DELETE }
998
+ );
999
+ }
1000
+ });
1001
+ function template(html, isImportNode, isSVG, isMathML) {
1002
+ let node;
1003
+ const create = (bypassGuard) => {
1004
+ const t = document.createElement("template");
1005
+ t.innerHTML = html;
1006
+ return t.content.firstChild;
1007
+ };
1008
+ const fn = isImportNode ? (bypassGuard) => solidJs.untrack(() => document.importNode(node || (node = create()), true)) : (bypassGuard) => (node || (node = create())).cloneNode(true);
1009
+ return fn;
1010
+ }
1011
+ function setAttribute(node, name, value) {
1012
+ if (isHydrating(node)) return;
1013
+ node.removeAttribute(name);
1014
+ }
1015
+ function style(node, value, prev) {
1016
+ if (!value) {
1017
+ if (prev) setAttribute(node, "style");
1018
+ return;
1019
+ }
1020
+ const nodeStyle = node.style;
1021
+ if (typeof value === "string") return nodeStyle.cssText = value;
1022
+ typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
1023
+ prev || (prev = {});
1024
+ value || (value = {});
1025
+ let v, s;
1026
+ for (s in value) {
1027
+ v = value[s];
1028
+ if (v !== prev[s]) nodeStyle.setProperty(s, v);
1029
+ delete prev[s];
1030
+ }
1031
+ for (s in prev) value[s] == null && nodeStyle.removeProperty(s);
1032
+ }
1033
+ function applyRef(r, element) {
1034
+ Array.isArray(r) ? r.flat(Infinity).forEach((f) => f && f(element)) : r(element);
1035
+ }
1036
+ function ref(fn, element) {
1037
+ const resolved = solidJs.untrack(fn);
1038
+ solidJs.runWithOwner(null, () => applyRef(resolved, element));
1039
+ }
1040
+ function isHydrating(node) {
1041
+ return solidJs.sharedConfig.hydrating && (!node || node.isConnected);
1042
+ }
1043
+ var effect, isServer, isDev;
1044
+ var init_web = __esm({
1045
+ "../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.2_@solidjs+signals@0.12.0_solid-js@2.0.0-beta.2/node_modules/@solidjs/web/dist/web.js"() {
1046
+ init_prod();
1047
+ effect = (fn, effectFn, initial) => solidJs.createRenderEffect(fn, effectFn, initial, {
1048
+ transparent: true
1049
+ });
1050
+ isServer = false;
1051
+ isDev = false;
1052
+ }
1053
+ });
1054
+
18
1055
  // src/devtools.tsx
19
1056
  var devtools_exports = {};
20
1057
  __export(devtools_exports, {
@@ -23,7 +1060,7 @@ __export(devtools_exports, {
23
1060
  function SolidQueryDevtools(props) {
24
1061
  const queryClient = solidQuery.useQueryClient(props.client);
25
1062
  const client = solidJs.createMemo(() => queryClient);
26
- let ref;
1063
+ let ref2;
27
1064
  const devtools = new queryDevtools.TanstackQueryDevtools({
28
1065
  client: client(),
29
1066
  queryFlavor: "Solid Query",
@@ -38,45 +1075,45 @@ function SolidQueryDevtools(props) {
38
1075
  hideDisabledQueries: props.hideDisabledQueries,
39
1076
  theme: props.theme
40
1077
  });
41
- solidJs.createEffect(() => {
42
- devtools.setClient(client());
1078
+ solidJs.createEffect(() => client(), (c) => {
1079
+ devtools.setClient(c);
43
1080
  });
44
- solidJs.createEffect(() => {
45
- const buttonPos = props.buttonPosition;
1081
+ solidJs.createEffect(() => props.buttonPosition, (buttonPos) => {
46
1082
  if (buttonPos) {
47
1083
  devtools.setButtonPosition(buttonPos);
48
1084
  }
49
1085
  });
50
- solidJs.createEffect(() => {
51
- const pos = props.position;
1086
+ solidJs.createEffect(() => props.position, (pos) => {
52
1087
  if (pos) {
53
1088
  devtools.setPosition(pos);
54
1089
  }
55
1090
  });
56
- solidJs.createEffect(() => {
57
- devtools.setInitialIsOpen(props.initialIsOpen || false);
1091
+ solidJs.createEffect(() => props.initialIsOpen, (initialIsOpen) => {
1092
+ devtools.setInitialIsOpen(initialIsOpen || false);
58
1093
  });
59
- solidJs.createEffect(() => {
60
- devtools.setErrorTypes(props.errorTypes || []);
1094
+ solidJs.createEffect(() => props.errorTypes, (errorTypes) => {
1095
+ devtools.setErrorTypes(errorTypes || []);
61
1096
  });
62
- solidJs.createEffect(() => {
63
- devtools.setTheme(props.theme || "system");
1097
+ solidJs.createEffect(() => props.theme, (theme) => {
1098
+ devtools.setTheme(theme || "system");
64
1099
  });
65
- solidJs.onMount(() => {
66
- devtools.mount(ref);
1100
+ solidJs.onSettled(() => {
1101
+ devtools.mount(ref2);
67
1102
  solidJs.onCleanup(() => devtools.unmount());
68
1103
  });
69
1104
  return (() => {
70
1105
  var _el$ = _tmpl$();
71
- var _ref$ = ref;
72
- typeof _ref$ === "function" ? web.use(_ref$, _el$) : ref = _el$;
1106
+ var _ref$ = ref2;
1107
+ typeof _ref$ === "function" || Array.isArray(_ref$) ? ref(() => _ref$, _el$) : ref2 = _el$;
73
1108
  return _el$;
74
1109
  })();
75
1110
  }
76
1111
  var _tmpl$;
77
1112
  var init_devtools = __esm({
78
1113
  "src/devtools.tsx"() {
79
- _tmpl$ = /* @__PURE__ */ web.template(`<div class=tsqd-parent-container>`);
1114
+ init_web();
1115
+ init_web();
1116
+ _tmpl$ = /* @__PURE__ */ template(`<div class=tsqd-parent-container>`);
80
1117
  }
81
1118
  });
82
1119
 
@@ -88,7 +1125,7 @@ __export(devtoolsPanel_exports, {
88
1125
  function SolidQueryDevtoolsPanel(props) {
89
1126
  const queryClient = solidQuery.useQueryClient(props.client);
90
1127
  const client = solidJs.createMemo(() => queryClient);
91
- let ref;
1128
+ let ref2;
92
1129
  const {
93
1130
  errorTypes,
94
1131
  styleNonce,
@@ -110,59 +1147,72 @@ function SolidQueryDevtoolsPanel(props) {
110
1147
  hideDisabledQueries,
111
1148
  theme: props.theme
112
1149
  });
113
- solidJs.createEffect(() => {
114
- devtools.setClient(client());
1150
+ solidJs.createEffect(() => client(), (c) => {
1151
+ devtools.setClient(c);
115
1152
  });
116
- solidJs.createEffect(() => {
117
- devtools.setOnClose(props.onClose ?? (() => {
1153
+ solidJs.createEffect(() => props.onClose, (onClose) => {
1154
+ devtools.setOnClose(onClose ?? (() => {
118
1155
  }));
119
1156
  });
120
- solidJs.createEffect(() => {
121
- devtools.setErrorTypes(props.errorTypes || []);
1157
+ solidJs.createEffect(() => props.errorTypes, (errorTypes2) => {
1158
+ devtools.setErrorTypes(errorTypes2 || []);
122
1159
  });
123
- solidJs.createEffect(() => {
124
- devtools.setTheme(props.theme || "system");
1160
+ solidJs.createEffect(() => props.theme, (theme) => {
1161
+ devtools.setTheme(theme || "system");
125
1162
  });
126
- solidJs.onMount(() => {
127
- devtools.mount(ref);
1163
+ solidJs.onSettled(() => {
1164
+ devtools.mount(ref2);
128
1165
  solidJs.onCleanup(() => devtools.unmount());
129
1166
  });
130
1167
  return (() => {
131
1168
  var _el$ = _tmpl$2();
132
- var _ref$ = ref;
133
- typeof _ref$ === "function" ? web.use(_ref$, _el$) : ref = _el$;
134
- web.effect((_$p) => web.style(_el$, {
135
- height: "500px",
1169
+ var _ref$ = ref2;
1170
+ typeof _ref$ === "function" || Array.isArray(_ref$) ? ref(() => _ref$, _el$) : ref2 = _el$;
1171
+ effect(() => ({
136
1172
  ...props.style
137
- }, _$p));
1173
+ }), (_v$, _$p) => {
1174
+ style(_el$, _v$, _$p);
1175
+ });
138
1176
  return _el$;
139
1177
  })();
140
1178
  }
141
1179
  var _tmpl$2;
142
1180
  var init_devtoolsPanel = __esm({
143
1181
  "src/devtoolsPanel.tsx"() {
144
- _tmpl$2 = /* @__PURE__ */ web.template(`<div class=tsqd-parent-container>`);
1182
+ init_web();
1183
+ init_web();
1184
+ init_web();
1185
+ init_web();
1186
+ _tmpl$2 = /* @__PURE__ */ template(`<div class=tsqd-parent-container style=height:500px>`);
145
1187
  }
146
1188
  });
1189
+
1190
+ // src/index.tsx
1191
+ init_web();
1192
+
1193
+ // src/clientOnly.tsx
1194
+ init_web();
147
1195
  function clientOnly(fn) {
148
- if (web.isServer) return (props) => props.fallback;
1196
+ if (isServer) return (props) => props.fallback;
149
1197
  const [comp, setComp] = solidJs.createSignal();
150
1198
  fn().then((m) => setComp(() => m.default));
151
1199
  return (props) => {
152
1200
  let Comp;
153
1201
  let m;
154
- const [, rest] = solidJs.splitProps(props, ["fallback"]);
155
- if ((Comp = comp()) && !solidJs.sharedConfig.context) return Comp(rest);
156
- const [mounted, setMounted] = solidJs.createSignal(!solidJs.sharedConfig.context);
157
- solidJs.onMount(() => setMounted(true));
1202
+ const rest = solidJs.omit(props, "fallback");
1203
+ if ((Comp = comp()) && !solidJs.sharedConfig.hydrating) return Comp(rest);
1204
+ const [mounted, setMounted] = solidJs.createSignal(!solidJs.sharedConfig.hydrating);
1205
+ solidJs.onSettled(() => {
1206
+ setMounted(true);
1207
+ });
158
1208
  return solidJs.createMemo(() => (Comp = comp(), m = mounted(), solidJs.untrack(() => Comp && m ? Comp(rest) : props.fallback)));
159
1209
  };
160
1210
  }
161
1211
 
162
1212
  // src/index.tsx
163
- exports.SolidQueryDevtools = web.isDev ? clientOnly(() => Promise.resolve().then(() => (init_devtools(), devtools_exports))) : function() {
1213
+ exports.SolidQueryDevtools = isDev ? clientOnly(() => Promise.resolve().then(() => (init_devtools(), devtools_exports))) : function() {
164
1214
  return null;
165
1215
  };
166
- exports.SolidQueryDevtoolsPanel = web.isDev ? clientOnly(() => Promise.resolve().then(() => (init_devtoolsPanel(), devtoolsPanel_exports))) : function() {
1216
+ exports.SolidQueryDevtoolsPanel = isDev ? clientOnly(() => Promise.resolve().then(() => (init_devtoolsPanel(), devtoolsPanel_exports))) : function() {
167
1217
  return null;
168
1218
  };