@tanstack/solid-query-devtools 6.0.0-alpha.2 → 6.0.0-beta.3
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/chunk/{AU2REB6C.js → P6IZ7GTW.js} +171 -142
- package/build/chunk/{75V4Q6CI.js → ZANDWIFD.js} +112 -83
- package/build/dev.cjs +112 -83
- package/build/dev.js +3 -3
- package/build/dev.jsx +112 -83
- package/build/devtools/{BK5V6NH3.js → BS6AII4K.js} +1 -1
- package/build/devtools/{CBPRJMAC.js → IWG4ZJJU.js} +1 -1
- package/build/devtoolsPanel/{A5BO2WVY.js → NAMW3JP3.js} +1 -1
- package/build/devtoolsPanel/{KNUODKZO.js → VZGSCV56.js} +1 -1
- package/build/index.cjs +171 -142
- package/build/index.js +3 -3
- package/build/index.jsx +171 -142
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRenderEffect, untrack as untrack$1, runWithOwner, sharedConfig } from 'solid-js';
|
|
2
2
|
|
|
3
|
-
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.
|
|
3
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.9_solid-js@2.0.0-beta.5/node_modules/@solidjs/web/dist/dev.js
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@solidjs+signals@0.13.
|
|
5
|
+
// ../../node_modules/.pnpm/@solidjs+signals@0.13.9/node_modules/@solidjs/signals/dist/dev.js
|
|
6
6
|
var NotReadyError = class extends Error {
|
|
7
7
|
source;
|
|
8
8
|
constructor(source) {
|
|
@@ -581,6 +581,92 @@ function assignOrMergeLane(el, sourceLane) {
|
|
|
581
581
|
}
|
|
582
582
|
el._optimisticLane = sourceLane;
|
|
583
583
|
}
|
|
584
|
+
function unlinkSubs(link) {
|
|
585
|
+
const dep = link._dep;
|
|
586
|
+
const nextDep = link._nextDep;
|
|
587
|
+
const nextSub = link._nextSub;
|
|
588
|
+
const prevSub = link._prevSub;
|
|
589
|
+
if (nextSub !== null) nextSub._prevSub = prevSub;
|
|
590
|
+
else dep._subsTail = prevSub;
|
|
591
|
+
if (prevSub !== null) prevSub._nextSub = nextSub;
|
|
592
|
+
else {
|
|
593
|
+
dep._subs = nextSub;
|
|
594
|
+
if (nextSub === null) {
|
|
595
|
+
dep._unobserved?.();
|
|
596
|
+
dep._fn && !dep._preventAutoDisposal && !(dep._flags & REACTIVE_ZOMBIE) && unobserved(dep);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return nextDep;
|
|
600
|
+
}
|
|
601
|
+
function unobserved(el) {
|
|
602
|
+
deleteFromHeap(el, el._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
603
|
+
let dep = el._deps;
|
|
604
|
+
while (dep !== null) {
|
|
605
|
+
dep = unlinkSubs(dep);
|
|
606
|
+
}
|
|
607
|
+
el._deps = null;
|
|
608
|
+
disposeChildren(el, true);
|
|
609
|
+
}
|
|
610
|
+
function markDisposal(el) {
|
|
611
|
+
let child = el._firstChild;
|
|
612
|
+
while (child) {
|
|
613
|
+
child._flags |= REACTIVE_ZOMBIE;
|
|
614
|
+
if (child._flags & REACTIVE_IN_HEAP) {
|
|
615
|
+
deleteFromHeap(child, dirtyQueue);
|
|
616
|
+
insertIntoHeap(child, zombieQueue);
|
|
617
|
+
}
|
|
618
|
+
markDisposal(child);
|
|
619
|
+
child = child._nextSibling;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
function disposeChildren(node, self = false, zombie) {
|
|
623
|
+
if (node._flags & REACTIVE_DISPOSED) return;
|
|
624
|
+
if (self) node._flags = REACTIVE_DISPOSED;
|
|
625
|
+
if (self && node._fn) node._inFlight = null;
|
|
626
|
+
let child = zombie ? node._pendingFirstChild : node._firstChild;
|
|
627
|
+
while (child) {
|
|
628
|
+
const nextChild = child._nextSibling;
|
|
629
|
+
if (child._deps) {
|
|
630
|
+
const n = child;
|
|
631
|
+
deleteFromHeap(n, n._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
632
|
+
let toRemove = n._deps;
|
|
633
|
+
do {
|
|
634
|
+
toRemove = unlinkSubs(toRemove);
|
|
635
|
+
} while (toRemove !== null);
|
|
636
|
+
n._deps = null;
|
|
637
|
+
n._depsTail = null;
|
|
638
|
+
}
|
|
639
|
+
disposeChildren(child, true);
|
|
640
|
+
child = nextChild;
|
|
641
|
+
}
|
|
642
|
+
if (zombie) {
|
|
643
|
+
node._pendingFirstChild = null;
|
|
644
|
+
} else {
|
|
645
|
+
node._firstChild = null;
|
|
646
|
+
node._childCount = 0;
|
|
647
|
+
}
|
|
648
|
+
runDisposal(node, zombie);
|
|
649
|
+
}
|
|
650
|
+
function runDisposal(node, zombie) {
|
|
651
|
+
let disposal = zombie ? node._pendingDisposal : node._disposal;
|
|
652
|
+
if (!disposal) return;
|
|
653
|
+
if (Array.isArray(disposal)) {
|
|
654
|
+
for (let i = 0; i < disposal.length; i++) {
|
|
655
|
+
const callable = disposal[i];
|
|
656
|
+
callable.call(callable);
|
|
657
|
+
}
|
|
658
|
+
} else {
|
|
659
|
+
disposal.call(disposal);
|
|
660
|
+
}
|
|
661
|
+
zombie ? node._pendingDisposal = null : node._disposal = null;
|
|
662
|
+
}
|
|
663
|
+
function cleanup(fn) {
|
|
664
|
+
if (!context) return fn;
|
|
665
|
+
if (!context._disposal) context._disposal = fn;
|
|
666
|
+
else if (Array.isArray(context._disposal)) context._disposal.push(fn);
|
|
667
|
+
else context._disposal = [context._disposal, fn];
|
|
668
|
+
return fn;
|
|
669
|
+
}
|
|
584
670
|
function addPendingSource(el, source) {
|
|
585
671
|
if (el._pendingSource === source || el._pendingSources?.has(source)) return false;
|
|
586
672
|
if (!el._pendingSource) {
|
|
@@ -743,6 +829,19 @@ function handleAsync(el, result, setter) {
|
|
|
743
829
|
if (iterator) {
|
|
744
830
|
const it = result[Symbol.asyncIterator]();
|
|
745
831
|
let hadSyncValue = false;
|
|
832
|
+
let completed = false;
|
|
833
|
+
cleanup(() => {
|
|
834
|
+
if (completed) return;
|
|
835
|
+
completed = true;
|
|
836
|
+
try {
|
|
837
|
+
const returned = it.return?.();
|
|
838
|
+
if (returned && typeof returned.then === "function") {
|
|
839
|
+
returned.then(void 0, () => {
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
} catch {
|
|
843
|
+
}
|
|
844
|
+
});
|
|
746
845
|
const iterate = () => {
|
|
747
846
|
let syncResult, resolved = false, isSync = true;
|
|
748
847
|
it.next().then(
|
|
@@ -750,14 +849,21 @@ function handleAsync(el, result, setter) {
|
|
|
750
849
|
if (isSync) {
|
|
751
850
|
syncResult = r;
|
|
752
851
|
resolved = true;
|
|
852
|
+
if (r.done) completed = true;
|
|
853
|
+
} else if (el._inFlight !== result) {
|
|
854
|
+
return;
|
|
753
855
|
} else if (!r.done) asyncWrite(r.value, iterate);
|
|
754
856
|
else {
|
|
857
|
+
completed = true;
|
|
755
858
|
schedule();
|
|
756
859
|
flush();
|
|
757
860
|
}
|
|
758
861
|
},
|
|
759
862
|
(e) => {
|
|
760
|
-
if (!isSync)
|
|
863
|
+
if (!isSync && el._inFlight === result) {
|
|
864
|
+
completed = true;
|
|
865
|
+
handleError(e);
|
|
866
|
+
}
|
|
761
867
|
}
|
|
762
868
|
);
|
|
763
869
|
isSync = false;
|
|
@@ -828,84 +934,6 @@ function notifyStatus(el, status, error, blockStatus, lane) {
|
|
|
828
934
|
});
|
|
829
935
|
}
|
|
830
936
|
var externalSourceConfig = null;
|
|
831
|
-
function markDisposal(el) {
|
|
832
|
-
let child = el._firstChild;
|
|
833
|
-
while (child) {
|
|
834
|
-
child._flags |= REACTIVE_ZOMBIE;
|
|
835
|
-
if (child._flags & REACTIVE_IN_HEAP) {
|
|
836
|
-
deleteFromHeap(child, dirtyQueue);
|
|
837
|
-
insertIntoHeap(child, zombieQueue);
|
|
838
|
-
}
|
|
839
|
-
markDisposal(child);
|
|
840
|
-
child = child._nextSibling;
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
function disposeChildren(node, self = false, zombie) {
|
|
844
|
-
if (node._flags & REACTIVE_DISPOSED) return;
|
|
845
|
-
if (self) node._flags = REACTIVE_DISPOSED;
|
|
846
|
-
let child = zombie ? node._pendingFirstChild : node._firstChild;
|
|
847
|
-
while (child) {
|
|
848
|
-
const nextChild = child._nextSibling;
|
|
849
|
-
if (child._deps) {
|
|
850
|
-
const n = child;
|
|
851
|
-
deleteFromHeap(n, n._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
852
|
-
let toRemove = n._deps;
|
|
853
|
-
do {
|
|
854
|
-
toRemove = unlinkSubs(toRemove);
|
|
855
|
-
} while (toRemove !== null);
|
|
856
|
-
n._deps = null;
|
|
857
|
-
n._depsTail = null;
|
|
858
|
-
}
|
|
859
|
-
disposeChildren(child, true);
|
|
860
|
-
child = nextChild;
|
|
861
|
-
}
|
|
862
|
-
if (zombie) {
|
|
863
|
-
node._pendingFirstChild = null;
|
|
864
|
-
} else {
|
|
865
|
-
node._firstChild = null;
|
|
866
|
-
node._childCount = 0;
|
|
867
|
-
}
|
|
868
|
-
runDisposal(node, zombie);
|
|
869
|
-
}
|
|
870
|
-
function runDisposal(node, zombie) {
|
|
871
|
-
let disposal = zombie ? node._pendingDisposal : node._disposal;
|
|
872
|
-
if (!disposal) return;
|
|
873
|
-
if (Array.isArray(disposal)) {
|
|
874
|
-
for (let i = 0; i < disposal.length; i++) {
|
|
875
|
-
const callable = disposal[i];
|
|
876
|
-
callable.call(callable);
|
|
877
|
-
}
|
|
878
|
-
} else {
|
|
879
|
-
disposal.call(disposal);
|
|
880
|
-
}
|
|
881
|
-
zombie ? node._pendingDisposal = null : node._disposal = null;
|
|
882
|
-
}
|
|
883
|
-
function unlinkSubs(link) {
|
|
884
|
-
const dep = link._dep;
|
|
885
|
-
const nextDep = link._nextDep;
|
|
886
|
-
const nextSub = link._nextSub;
|
|
887
|
-
const prevSub = link._prevSub;
|
|
888
|
-
if (nextSub !== null) nextSub._prevSub = prevSub;
|
|
889
|
-
else dep._subsTail = prevSub;
|
|
890
|
-
if (prevSub !== null) prevSub._nextSub = nextSub;
|
|
891
|
-
else {
|
|
892
|
-
dep._subs = nextSub;
|
|
893
|
-
if (nextSub === null) {
|
|
894
|
-
dep._unobserved?.();
|
|
895
|
-
dep._fn && !dep._preventAutoDisposal && !(dep._flags & REACTIVE_ZOMBIE) && unobserved(dep);
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
return nextDep;
|
|
899
|
-
}
|
|
900
|
-
function unobserved(el) {
|
|
901
|
-
deleteFromHeap(el, el._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
902
|
-
let dep = el._deps;
|
|
903
|
-
while (dep !== null) {
|
|
904
|
-
dep = unlinkSubs(dep);
|
|
905
|
-
}
|
|
906
|
-
el._deps = null;
|
|
907
|
-
disposeChildren(el, true);
|
|
908
|
-
}
|
|
909
937
|
GlobalQueue._update = recompute;
|
|
910
938
|
GlobalQueue._dispose = disposeChildren;
|
|
911
939
|
var tracking = false;
|
|
@@ -917,6 +945,7 @@ function recompute(el, create = false) {
|
|
|
917
945
|
if (el._transition && (!isEffect || activeTransition) && activeTransition !== el._transition)
|
|
918
946
|
globalQueue.initTransition(el._transition);
|
|
919
947
|
deleteFromHeap(el, el._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
948
|
+
el._inFlight = null;
|
|
920
949
|
if (el._transition || isEffect === EFFECT_TRACKED) disposeChildren(el);
|
|
921
950
|
else {
|
|
922
951
|
markDisposal(el);
|
|
@@ -1113,7 +1142,7 @@ function updatePendingSignal(el) {
|
|
|
1113
1142
|
}
|
|
1114
1143
|
}
|
|
1115
1144
|
function isWrappable(obj) {
|
|
1116
|
-
return obj != null && typeof obj === "object" && !Object.isFrozen(obj);
|
|
1145
|
+
return obj != null && typeof obj === "object" && !Object.isFrozen(obj) && !(typeof Node !== "undefined" && obj instanceof Node);
|
|
1117
1146
|
}
|
|
1118
1147
|
var DELETE = /* @__PURE__ */ Symbol("STORE_PATH_DELETE");
|
|
1119
1148
|
function updatePath(current, args, i = 0) {
|
|
@@ -1177,7 +1206,7 @@ Object.assign(
|
|
|
1177
1206
|
{ DELETE }
|
|
1178
1207
|
);
|
|
1179
1208
|
|
|
1180
|
-
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.
|
|
1209
|
+
// ../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.9_solid-js@2.0.0-beta.5/node_modules/@solidjs/web/dist/dev.js
|
|
1181
1210
|
var effect = (fn, effectFn, initial) => createRenderEffect(fn, effectFn, initial, {
|
|
1182
1211
|
transparent: true
|
|
1183
1212
|
});
|
package/build/dev.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var __export = (target, all) => {
|
|
|
14
14
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
// ../../node_modules/.pnpm/@solidjs+signals@0.13.
|
|
17
|
+
// ../../node_modules/.pnpm/@solidjs+signals@0.13.9/node_modules/@solidjs/signals/dist/dev.js
|
|
18
18
|
function actualInsertIntoHeap(n, heap) {
|
|
19
19
|
const parentHeight = (n._parent?._root ? n._parent._parentComputed?._height : n._parent?._height) ?? -1;
|
|
20
20
|
if (parentHeight >= n._height) n._height = parentHeight + 1;
|
|
@@ -358,6 +358,92 @@ function assignOrMergeLane(el, sourceLane) {
|
|
|
358
358
|
}
|
|
359
359
|
el._optimisticLane = sourceLane;
|
|
360
360
|
}
|
|
361
|
+
function unlinkSubs(link) {
|
|
362
|
+
const dep = link._dep;
|
|
363
|
+
const nextDep = link._nextDep;
|
|
364
|
+
const nextSub = link._nextSub;
|
|
365
|
+
const prevSub = link._prevSub;
|
|
366
|
+
if (nextSub !== null) nextSub._prevSub = prevSub;
|
|
367
|
+
else dep._subsTail = prevSub;
|
|
368
|
+
if (prevSub !== null) prevSub._nextSub = nextSub;
|
|
369
|
+
else {
|
|
370
|
+
dep._subs = nextSub;
|
|
371
|
+
if (nextSub === null) {
|
|
372
|
+
dep._unobserved?.();
|
|
373
|
+
dep._fn && !dep._preventAutoDisposal && !(dep._flags & REACTIVE_ZOMBIE) && unobserved(dep);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
return nextDep;
|
|
377
|
+
}
|
|
378
|
+
function unobserved(el) {
|
|
379
|
+
deleteFromHeap(el, el._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
380
|
+
let dep = el._deps;
|
|
381
|
+
while (dep !== null) {
|
|
382
|
+
dep = unlinkSubs(dep);
|
|
383
|
+
}
|
|
384
|
+
el._deps = null;
|
|
385
|
+
disposeChildren(el, true);
|
|
386
|
+
}
|
|
387
|
+
function markDisposal(el) {
|
|
388
|
+
let child = el._firstChild;
|
|
389
|
+
while (child) {
|
|
390
|
+
child._flags |= REACTIVE_ZOMBIE;
|
|
391
|
+
if (child._flags & REACTIVE_IN_HEAP) {
|
|
392
|
+
deleteFromHeap(child, dirtyQueue);
|
|
393
|
+
insertIntoHeap(child, zombieQueue);
|
|
394
|
+
}
|
|
395
|
+
markDisposal(child);
|
|
396
|
+
child = child._nextSibling;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
function disposeChildren(node, self = false, zombie) {
|
|
400
|
+
if (node._flags & REACTIVE_DISPOSED) return;
|
|
401
|
+
if (self) node._flags = REACTIVE_DISPOSED;
|
|
402
|
+
if (self && node._fn) node._inFlight = null;
|
|
403
|
+
let child = zombie ? node._pendingFirstChild : node._firstChild;
|
|
404
|
+
while (child) {
|
|
405
|
+
const nextChild = child._nextSibling;
|
|
406
|
+
if (child._deps) {
|
|
407
|
+
const n = child;
|
|
408
|
+
deleteFromHeap(n, n._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
409
|
+
let toRemove = n._deps;
|
|
410
|
+
do {
|
|
411
|
+
toRemove = unlinkSubs(toRemove);
|
|
412
|
+
} while (toRemove !== null);
|
|
413
|
+
n._deps = null;
|
|
414
|
+
n._depsTail = null;
|
|
415
|
+
}
|
|
416
|
+
disposeChildren(child, true);
|
|
417
|
+
child = nextChild;
|
|
418
|
+
}
|
|
419
|
+
if (zombie) {
|
|
420
|
+
node._pendingFirstChild = null;
|
|
421
|
+
} else {
|
|
422
|
+
node._firstChild = null;
|
|
423
|
+
node._childCount = 0;
|
|
424
|
+
}
|
|
425
|
+
runDisposal(node, zombie);
|
|
426
|
+
}
|
|
427
|
+
function runDisposal(node, zombie) {
|
|
428
|
+
let disposal = zombie ? node._pendingDisposal : node._disposal;
|
|
429
|
+
if (!disposal) return;
|
|
430
|
+
if (Array.isArray(disposal)) {
|
|
431
|
+
for (let i = 0; i < disposal.length; i++) {
|
|
432
|
+
const callable = disposal[i];
|
|
433
|
+
callable.call(callable);
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
disposal.call(disposal);
|
|
437
|
+
}
|
|
438
|
+
zombie ? node._pendingDisposal = null : node._disposal = null;
|
|
439
|
+
}
|
|
440
|
+
function cleanup(fn) {
|
|
441
|
+
if (!context) return fn;
|
|
442
|
+
if (!context._disposal) context._disposal = fn;
|
|
443
|
+
else if (Array.isArray(context._disposal)) context._disposal.push(fn);
|
|
444
|
+
else context._disposal = [context._disposal, fn];
|
|
445
|
+
return fn;
|
|
446
|
+
}
|
|
361
447
|
function addPendingSource(el, source) {
|
|
362
448
|
if (el._pendingSource === source || el._pendingSources?.has(source)) return false;
|
|
363
449
|
if (!el._pendingSource) {
|
|
@@ -520,6 +606,19 @@ function handleAsync(el, result, setter) {
|
|
|
520
606
|
if (iterator) {
|
|
521
607
|
const it = result[Symbol.asyncIterator]();
|
|
522
608
|
let hadSyncValue = false;
|
|
609
|
+
let completed = false;
|
|
610
|
+
cleanup(() => {
|
|
611
|
+
if (completed) return;
|
|
612
|
+
completed = true;
|
|
613
|
+
try {
|
|
614
|
+
const returned = it.return?.();
|
|
615
|
+
if (returned && typeof returned.then === "function") {
|
|
616
|
+
returned.then(void 0, () => {
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
} catch {
|
|
620
|
+
}
|
|
621
|
+
});
|
|
523
622
|
const iterate = () => {
|
|
524
623
|
let syncResult, resolved = false, isSync = true;
|
|
525
624
|
it.next().then(
|
|
@@ -527,14 +626,21 @@ function handleAsync(el, result, setter) {
|
|
|
527
626
|
if (isSync) {
|
|
528
627
|
syncResult = r;
|
|
529
628
|
resolved = true;
|
|
629
|
+
if (r.done) completed = true;
|
|
630
|
+
} else if (el._inFlight !== result) {
|
|
631
|
+
return;
|
|
530
632
|
} else if (!r.done) asyncWrite(r.value, iterate);
|
|
531
633
|
else {
|
|
634
|
+
completed = true;
|
|
532
635
|
schedule();
|
|
533
636
|
flush();
|
|
534
637
|
}
|
|
535
638
|
},
|
|
536
639
|
(e) => {
|
|
537
|
-
if (!isSync)
|
|
640
|
+
if (!isSync && el._inFlight === result) {
|
|
641
|
+
completed = true;
|
|
642
|
+
handleError(e);
|
|
643
|
+
}
|
|
538
644
|
}
|
|
539
645
|
);
|
|
540
646
|
isSync = false;
|
|
@@ -604,90 +710,13 @@ function notifyStatus(el, status, error, blockStatus, lane) {
|
|
|
604
710
|
}
|
|
605
711
|
});
|
|
606
712
|
}
|
|
607
|
-
function markDisposal(el) {
|
|
608
|
-
let child = el._firstChild;
|
|
609
|
-
while (child) {
|
|
610
|
-
child._flags |= REACTIVE_ZOMBIE;
|
|
611
|
-
if (child._flags & REACTIVE_IN_HEAP) {
|
|
612
|
-
deleteFromHeap(child, dirtyQueue);
|
|
613
|
-
insertIntoHeap(child, zombieQueue);
|
|
614
|
-
}
|
|
615
|
-
markDisposal(child);
|
|
616
|
-
child = child._nextSibling;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
function disposeChildren(node, self = false, zombie) {
|
|
620
|
-
if (node._flags & REACTIVE_DISPOSED) return;
|
|
621
|
-
if (self) node._flags = REACTIVE_DISPOSED;
|
|
622
|
-
let child = zombie ? node._pendingFirstChild : node._firstChild;
|
|
623
|
-
while (child) {
|
|
624
|
-
const nextChild = child._nextSibling;
|
|
625
|
-
if (child._deps) {
|
|
626
|
-
const n = child;
|
|
627
|
-
deleteFromHeap(n, n._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
628
|
-
let toRemove = n._deps;
|
|
629
|
-
do {
|
|
630
|
-
toRemove = unlinkSubs(toRemove);
|
|
631
|
-
} while (toRemove !== null);
|
|
632
|
-
n._deps = null;
|
|
633
|
-
n._depsTail = null;
|
|
634
|
-
}
|
|
635
|
-
disposeChildren(child, true);
|
|
636
|
-
child = nextChild;
|
|
637
|
-
}
|
|
638
|
-
if (zombie) {
|
|
639
|
-
node._pendingFirstChild = null;
|
|
640
|
-
} else {
|
|
641
|
-
node._firstChild = null;
|
|
642
|
-
node._childCount = 0;
|
|
643
|
-
}
|
|
644
|
-
runDisposal(node, zombie);
|
|
645
|
-
}
|
|
646
|
-
function runDisposal(node, zombie) {
|
|
647
|
-
let disposal = zombie ? node._pendingDisposal : node._disposal;
|
|
648
|
-
if (!disposal) return;
|
|
649
|
-
if (Array.isArray(disposal)) {
|
|
650
|
-
for (let i = 0; i < disposal.length; i++) {
|
|
651
|
-
const callable = disposal[i];
|
|
652
|
-
callable.call(callable);
|
|
653
|
-
}
|
|
654
|
-
} else {
|
|
655
|
-
disposal.call(disposal);
|
|
656
|
-
}
|
|
657
|
-
zombie ? node._pendingDisposal = null : node._disposal = null;
|
|
658
|
-
}
|
|
659
|
-
function unlinkSubs(link) {
|
|
660
|
-
const dep = link._dep;
|
|
661
|
-
const nextDep = link._nextDep;
|
|
662
|
-
const nextSub = link._nextSub;
|
|
663
|
-
const prevSub = link._prevSub;
|
|
664
|
-
if (nextSub !== null) nextSub._prevSub = prevSub;
|
|
665
|
-
else dep._subsTail = prevSub;
|
|
666
|
-
if (prevSub !== null) prevSub._nextSub = nextSub;
|
|
667
|
-
else {
|
|
668
|
-
dep._subs = nextSub;
|
|
669
|
-
if (nextSub === null) {
|
|
670
|
-
dep._unobserved?.();
|
|
671
|
-
dep._fn && !dep._preventAutoDisposal && !(dep._flags & REACTIVE_ZOMBIE) && unobserved(dep);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
return nextDep;
|
|
675
|
-
}
|
|
676
|
-
function unobserved(el) {
|
|
677
|
-
deleteFromHeap(el, el._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
678
|
-
let dep = el._deps;
|
|
679
|
-
while (dep !== null) {
|
|
680
|
-
dep = unlinkSubs(dep);
|
|
681
|
-
}
|
|
682
|
-
el._deps = null;
|
|
683
|
-
disposeChildren(el, true);
|
|
684
|
-
}
|
|
685
713
|
function recompute(el, create = false) {
|
|
686
714
|
const isEffect = el._type;
|
|
687
715
|
if (!create) {
|
|
688
716
|
if (el._transition && (!isEffect || activeTransition) && activeTransition !== el._transition)
|
|
689
717
|
globalQueue.initTransition(el._transition);
|
|
690
718
|
deleteFromHeap(el, el._flags & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue);
|
|
719
|
+
el._inFlight = null;
|
|
691
720
|
if (el._transition || isEffect === EFFECT_TRACKED) disposeChildren(el);
|
|
692
721
|
else {
|
|
693
722
|
markDisposal(el);
|
|
@@ -883,7 +912,7 @@ function updatePendingSignal(el) {
|
|
|
883
912
|
}
|
|
884
913
|
}
|
|
885
914
|
function isWrappable(obj) {
|
|
886
|
-
return obj != null && typeof obj === "object" && !Object.isFrozen(obj);
|
|
915
|
+
return obj != null && typeof obj === "object" && !Object.isFrozen(obj) && !(typeof Node !== "undefined" && obj instanceof Node);
|
|
887
916
|
}
|
|
888
917
|
function updatePath(current, args, i = 0) {
|
|
889
918
|
let part, prev = current;
|
|
@@ -939,7 +968,7 @@ function updatePath(current, args, i = 0) {
|
|
|
939
968
|
}
|
|
940
969
|
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, inTrackedQueueCallback, stashedOptimisticReads, Queue, GlobalQueue, globalQueue, signalLanes, activeLanes, externalSourceConfig, tracking, context, currentOptimisticLane, strictRead, DELETE;
|
|
941
970
|
var init_dev = __esm({
|
|
942
|
-
"../../node_modules/.pnpm/@solidjs+signals@0.13.
|
|
971
|
+
"../../node_modules/.pnpm/@solidjs+signals@0.13.9/node_modules/@solidjs/signals/dist/dev.js"() {
|
|
943
972
|
NotReadyError = class extends Error {
|
|
944
973
|
source;
|
|
945
974
|
constructor(source) {
|
|
@@ -1239,7 +1268,7 @@ function isHydrating(node) {
|
|
|
1239
1268
|
}
|
|
1240
1269
|
var effect, isServer, isDev;
|
|
1241
1270
|
var init_dev2 = __esm({
|
|
1242
|
-
"../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.
|
|
1271
|
+
"../../node_modules/.pnpm/@solidjs+web@2.0.0-beta.4_@solidjs+signals@0.13.9_solid-js@2.0.0-beta.5/node_modules/@solidjs/web/dist/dev.js"() {
|
|
1243
1272
|
init_dev();
|
|
1244
1273
|
effect = (fn, effectFn, initial) => solidJs.createRenderEffect(fn, effectFn, initial, {
|
|
1245
1274
|
transparent: true
|
package/build/dev.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isDev, isServer } from './chunk/
|
|
1
|
+
import { isDev, isServer } from './chunk/ZANDWIFD.js';
|
|
2
2
|
import { createSignal, omit, sharedConfig, onSettled, createMemo, untrack } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
function clientOnly(fn) {
|
|
@@ -19,10 +19,10 @@ function clientOnly(fn) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// src/index.tsx
|
|
22
|
-
var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/
|
|
22
|
+
var SolidQueryDevtools = isDev ? clientOnly(() => import('./devtools/BS6AII4K.js')) : function() {
|
|
23
23
|
return null;
|
|
24
24
|
};
|
|
25
|
-
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/
|
|
25
|
+
var SolidQueryDevtoolsPanel = isDev ? clientOnly(() => import('./devtoolsPanel/VZGSCV56.js')) : function() {
|
|
26
26
|
return null;
|
|
27
27
|
};
|
|
28
28
|
|