@solidjs/signals 0.4.5 → 0.4.6
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/dev.js +1 -0
- package/dist/node.cjs +35 -34
- package/dist/prod.js +35 -34
- package/package.json +1 -1
package/dist/dev.js
CHANGED
package/dist/node.cjs
CHANGED
|
@@ -263,12 +263,12 @@ var Transition = class _Transition {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
addOptimistic(fn) {
|
|
266
|
-
if (fn.
|
|
267
|
-
mergeTransitions(fn.
|
|
268
|
-
ActiveTransition = fn.
|
|
266
|
+
if (fn.l && fn.l !== this) {
|
|
267
|
+
mergeTransitions(fn.l, this);
|
|
268
|
+
ActiveTransition = fn.l;
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
|
-
fn.
|
|
271
|
+
fn.l = this;
|
|
272
272
|
this.W.add(fn);
|
|
273
273
|
}
|
|
274
274
|
};
|
|
@@ -277,12 +277,12 @@ function transition(fn) {
|
|
|
277
277
|
queueMicrotask(() => t.runTransition(() => fn((fn2) => t.runTransition(fn2))));
|
|
278
278
|
}
|
|
279
279
|
function cloneGraph(node) {
|
|
280
|
-
if (node.
|
|
281
|
-
if (node.
|
|
282
|
-
mergeTransitions(node.
|
|
283
|
-
ActiveTransition = node.
|
|
280
|
+
if (node.l) {
|
|
281
|
+
if (node.l !== ActiveTransition) {
|
|
282
|
+
mergeTransitions(node.l, ActiveTransition);
|
|
283
|
+
ActiveTransition = node.l;
|
|
284
284
|
}
|
|
285
|
-
return node.
|
|
285
|
+
return node.l.a.get(node);
|
|
286
286
|
}
|
|
287
287
|
const clone = Object.create(Object.getPrototypeOf(node));
|
|
288
288
|
Object.assign(clone, node, {
|
|
@@ -293,7 +293,7 @@ function cloneGraph(node) {
|
|
|
293
293
|
g: node
|
|
294
294
|
});
|
|
295
295
|
ActiveTransition.a.set(node, clone);
|
|
296
|
-
node.
|
|
296
|
+
node.l = ActiveTransition;
|
|
297
297
|
if (node.a) {
|
|
298
298
|
for (let i = 0; i < node.a.length; i++)
|
|
299
299
|
node.a[i].b.push(clone);
|
|
@@ -364,11 +364,11 @@ function resolveQueues(children) {
|
|
|
364
364
|
}
|
|
365
365
|
function mergeTransitions(t1, t2) {
|
|
366
366
|
t2.a.forEach((value, key) => {
|
|
367
|
-
key.
|
|
367
|
+
key.l = t1;
|
|
368
368
|
t1.a.set(key, value);
|
|
369
369
|
});
|
|
370
370
|
t2.W.forEach((c) => {
|
|
371
|
-
c.
|
|
371
|
+
c.l = t1;
|
|
372
372
|
t1.W.add(c);
|
|
373
373
|
});
|
|
374
374
|
t2.R.forEach((p) => t1.R.add(p));
|
|
@@ -380,7 +380,7 @@ function finishTransition(transition2) {
|
|
|
380
380
|
if (transition2.I || transition2.X || transition2.R.size || transition2.s.size)
|
|
381
381
|
return;
|
|
382
382
|
for (const [source, clone] of transition2.a) {
|
|
383
|
-
if (source === clone || source.
|
|
383
|
+
if (source === clone || source.l !== transition2)
|
|
384
384
|
continue;
|
|
385
385
|
if (clone.a)
|
|
386
386
|
replaceSourceObservers(clone, transition2);
|
|
@@ -388,14 +388,14 @@ function finishTransition(transition2) {
|
|
|
388
388
|
source.emptyDisposal();
|
|
389
389
|
Object.assign(source, clone);
|
|
390
390
|
delete source.g;
|
|
391
|
-
delete source.
|
|
391
|
+
delete source.l;
|
|
392
392
|
}
|
|
393
393
|
globalQueue.f[0].push.apply(globalQueue.f[0], transition2.f[0]);
|
|
394
394
|
globalQueue.f[1].push.apply(globalQueue.f[1], transition2.f[1]);
|
|
395
395
|
resolveQueues(transition2.e);
|
|
396
396
|
transition2.I = true;
|
|
397
397
|
for (const reset of transition2.W) {
|
|
398
|
-
delete reset.
|
|
398
|
+
delete reset.l;
|
|
399
399
|
reset();
|
|
400
400
|
}
|
|
401
401
|
globalQueue.flush();
|
|
@@ -422,7 +422,7 @@ var Owner = class {
|
|
|
422
422
|
c = STATE_CLEAN;
|
|
423
423
|
n = null;
|
|
424
424
|
w = defaultContext;
|
|
425
|
-
|
|
425
|
+
k = globalQueue;
|
|
426
426
|
ea = 0;
|
|
427
427
|
id = null;
|
|
428
428
|
constructor(id = null, skipAppend = false) {
|
|
@@ -443,8 +443,8 @@ var Owner = class {
|
|
|
443
443
|
if (child.w !== this.w) {
|
|
444
444
|
child.w = { ...this.w, ...child.w };
|
|
445
445
|
}
|
|
446
|
-
if (this.
|
|
447
|
-
child.
|
|
446
|
+
if (this.k)
|
|
447
|
+
child.k = this.k;
|
|
448
448
|
}
|
|
449
449
|
dispose(self = true) {
|
|
450
450
|
if (this.c === STATE_DISPOSED)
|
|
@@ -571,7 +571,7 @@ var Computation = class extends Owner {
|
|
|
571
571
|
aa = DEFAULT_FLAGS;
|
|
572
572
|
M = -1;
|
|
573
573
|
G = false;
|
|
574
|
-
|
|
574
|
+
l;
|
|
575
575
|
g;
|
|
576
576
|
constructor(initialValue, compute2, options) {
|
|
577
577
|
super(options == null ? void 0 : options.id, compute2 === null);
|
|
@@ -586,7 +586,7 @@ var Computation = class extends Owner {
|
|
|
586
586
|
if (options == null ? void 0 : options.unobserved)
|
|
587
587
|
this.da = options == null ? void 0 : options.unobserved;
|
|
588
588
|
if (ActiveTransition) {
|
|
589
|
-
this.
|
|
589
|
+
this.l = ActiveTransition;
|
|
590
590
|
ActiveTransition.a.set(this, this);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
@@ -976,17 +976,17 @@ var Effect = class extends Computation {
|
|
|
976
976
|
this.A = (options == null ? void 0 : options.render) ? EFFECT_RENDER : EFFECT_USER;
|
|
977
977
|
if (this.A === EFFECT_RENDER) {
|
|
978
978
|
this.L = function(p) {
|
|
979
|
-
return !this.g && clock > this.
|
|
979
|
+
return !this.g && clock > this.k.created && !(this.h & ERROR_BIT) ? latest(() => compute2(p)) : compute2(p);
|
|
980
980
|
};
|
|
981
981
|
}
|
|
982
982
|
this.H();
|
|
983
|
-
!(options == null ? void 0 : options.defer) && (this.A === EFFECT_USER ? this.
|
|
983
|
+
!(options == null ? void 0 : options.defer) && (this.A === EFFECT_USER ? this.k.enqueue(this.A, this.C.bind(this)) : this.C(this.A));
|
|
984
984
|
}
|
|
985
985
|
write(value, flags = 0) {
|
|
986
986
|
if (this.c == STATE_DIRTY) {
|
|
987
987
|
this.h = flags;
|
|
988
988
|
if (this.A === EFFECT_RENDER) {
|
|
989
|
-
this.
|
|
989
|
+
this.k.notify(this, LOADING_BIT | ERROR_BIT, this.h);
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
if (value === UNCHANGED)
|
|
@@ -1000,7 +1000,7 @@ var Effect = class extends Computation {
|
|
|
1000
1000
|
if (this.c >= state || skipQueue)
|
|
1001
1001
|
return;
|
|
1002
1002
|
if (this.c === STATE_CLEAN)
|
|
1003
|
-
this.
|
|
1003
|
+
this.k.enqueue(this.A, this.C.bind(this));
|
|
1004
1004
|
this.c = state;
|
|
1005
1005
|
}
|
|
1006
1006
|
Y(mask, newFlags2) {
|
|
@@ -1016,7 +1016,7 @@ var Effect = class extends Computation {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
N(error) {
|
|
1018
1018
|
this.K = error;
|
|
1019
|
-
this.
|
|
1019
|
+
this.k.notify(this, LOADING_BIT, 0);
|
|
1020
1020
|
this.h = ERROR_BIT;
|
|
1021
1021
|
if (this.A === EFFECT_USER) {
|
|
1022
1022
|
try {
|
|
@@ -1029,7 +1029,7 @@ var Effect = class extends Computation {
|
|
|
1029
1029
|
error = e;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
if (!this.
|
|
1032
|
+
if (!this.k.notify(this, ERROR_BIT, ERROR_BIT))
|
|
1033
1033
|
throw error;
|
|
1034
1034
|
}
|
|
1035
1035
|
J() {
|
|
@@ -1041,6 +1041,7 @@ var Effect = class extends Computation {
|
|
|
1041
1041
|
this.Z = void 0;
|
|
1042
1042
|
(_a = this.O) == null ? void 0 : _a.call(this);
|
|
1043
1043
|
this.O = void 0;
|
|
1044
|
+
this.k.notify(this, ERROR_BIT | LOADING_BIT, 0);
|
|
1044
1045
|
super.J();
|
|
1045
1046
|
}
|
|
1046
1047
|
C(type) {
|
|
@@ -1052,7 +1053,7 @@ var Effect = class extends Computation {
|
|
|
1052
1053
|
try {
|
|
1053
1054
|
effect.O = effect.ba(effect.j, effect._);
|
|
1054
1055
|
} catch (e) {
|
|
1055
|
-
if (!effect.
|
|
1056
|
+
if (!effect.k.notify(effect, ERROR_BIT, ERROR_BIT))
|
|
1056
1057
|
throw e;
|
|
1057
1058
|
} finally {
|
|
1058
1059
|
effect._ = effect.j;
|
|
@@ -1072,7 +1073,7 @@ var EagerComputation = class extends Computation {
|
|
|
1072
1073
|
if (this.c >= state && !this.G)
|
|
1073
1074
|
return;
|
|
1074
1075
|
if (!skipQueue && (this.c === STATE_CLEAN || this.c === STATE_CHECK && this.G))
|
|
1075
|
-
this.
|
|
1076
|
+
this.k.enqueue(EFFECT_PURE, this.C.bind(this));
|
|
1076
1077
|
super.x(state, skipQueue);
|
|
1077
1078
|
}
|
|
1078
1079
|
C() {
|
|
@@ -1088,7 +1089,7 @@ var FirewallComputation = class extends Computation {
|
|
|
1088
1089
|
if (this.c >= state && !this.G)
|
|
1089
1090
|
return;
|
|
1090
1091
|
if (!skipQueue && (this.c === STATE_CLEAN || this.c === STATE_CHECK && this.G))
|
|
1091
|
-
this.
|
|
1092
|
+
this.k.enqueue(EFFECT_PURE, this.C.bind(this));
|
|
1092
1093
|
super.x(state, true);
|
|
1093
1094
|
this.G = !!skipQueue;
|
|
1094
1095
|
}
|
|
@@ -2172,14 +2173,14 @@ var BoundaryComputation = class extends EagerComputation {
|
|
|
2172
2173
|
if (this.U & LOADING_BIT && !(this.h & UNINITIALIZED_BIT)) {
|
|
2173
2174
|
flags &= ~LOADING_BIT;
|
|
2174
2175
|
}
|
|
2175
|
-
this.
|
|
2176
|
+
this.k.notify(this, this.U, flags);
|
|
2176
2177
|
return this.j;
|
|
2177
2178
|
}
|
|
2178
2179
|
};
|
|
2179
2180
|
function createBoundChildren(owner, fn, queue, mask) {
|
|
2180
|
-
const parentQueue = owner.
|
|
2181
|
-
parentQueue.addChild(owner.
|
|
2182
|
-
onCleanup(() => parentQueue.removeChild(owner.
|
|
2181
|
+
const parentQueue = owner.k;
|
|
2182
|
+
parentQueue.addChild(owner.k = queue);
|
|
2183
|
+
onCleanup(() => parentQueue.removeChild(owner.k));
|
|
2183
2184
|
return compute(
|
|
2184
2185
|
owner,
|
|
2185
2186
|
() => {
|
|
@@ -2310,7 +2311,7 @@ function createErrorBoundary(fn, fallback) {
|
|
|
2310
2311
|
if (ActiveTransition && !node2.g)
|
|
2311
2312
|
node2 = cloneGraph(node2);
|
|
2312
2313
|
node2.c = STATE_DIRTY;
|
|
2313
|
-
(_a = node2.
|
|
2314
|
+
(_a = node2.k) == null ? void 0 : _a.enqueue(node2.A, node2.C.bind(node2));
|
|
2314
2315
|
}
|
|
2315
2316
|
});
|
|
2316
2317
|
});
|
package/dist/prod.js
CHANGED
|
@@ -260,12 +260,12 @@ var Transition = class _Transition {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
addOptimistic(fn) {
|
|
263
|
-
if (fn.
|
|
264
|
-
mergeTransitions(fn.
|
|
265
|
-
ActiveTransition = fn.
|
|
263
|
+
if (fn.l && fn.l !== this) {
|
|
264
|
+
mergeTransitions(fn.l, this);
|
|
265
|
+
ActiveTransition = fn.l;
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
|
-
fn.
|
|
268
|
+
fn.l = this;
|
|
269
269
|
this.W.add(fn);
|
|
270
270
|
}
|
|
271
271
|
};
|
|
@@ -274,12 +274,12 @@ function transition(fn) {
|
|
|
274
274
|
queueMicrotask(() => t.runTransition(() => fn((fn2) => t.runTransition(fn2))));
|
|
275
275
|
}
|
|
276
276
|
function cloneGraph(node) {
|
|
277
|
-
if (node.
|
|
278
|
-
if (node.
|
|
279
|
-
mergeTransitions(node.
|
|
280
|
-
ActiveTransition = node.
|
|
277
|
+
if (node.l) {
|
|
278
|
+
if (node.l !== ActiveTransition) {
|
|
279
|
+
mergeTransitions(node.l, ActiveTransition);
|
|
280
|
+
ActiveTransition = node.l;
|
|
281
281
|
}
|
|
282
|
-
return node.
|
|
282
|
+
return node.l.a.get(node);
|
|
283
283
|
}
|
|
284
284
|
const clone = Object.create(Object.getPrototypeOf(node));
|
|
285
285
|
Object.assign(clone, node, {
|
|
@@ -290,7 +290,7 @@ function cloneGraph(node) {
|
|
|
290
290
|
g: node
|
|
291
291
|
});
|
|
292
292
|
ActiveTransition.a.set(node, clone);
|
|
293
|
-
node.
|
|
293
|
+
node.l = ActiveTransition;
|
|
294
294
|
if (node.a) {
|
|
295
295
|
for (let i = 0; i < node.a.length; i++)
|
|
296
296
|
node.a[i].b.push(clone);
|
|
@@ -361,11 +361,11 @@ function resolveQueues(children) {
|
|
|
361
361
|
}
|
|
362
362
|
function mergeTransitions(t1, t2) {
|
|
363
363
|
t2.a.forEach((value, key) => {
|
|
364
|
-
key.
|
|
364
|
+
key.l = t1;
|
|
365
365
|
t1.a.set(key, value);
|
|
366
366
|
});
|
|
367
367
|
t2.W.forEach((c) => {
|
|
368
|
-
c.
|
|
368
|
+
c.l = t1;
|
|
369
369
|
t1.W.add(c);
|
|
370
370
|
});
|
|
371
371
|
t2.R.forEach((p) => t1.R.add(p));
|
|
@@ -377,7 +377,7 @@ function finishTransition(transition2) {
|
|
|
377
377
|
if (transition2.I || transition2.X || transition2.R.size || transition2.s.size)
|
|
378
378
|
return;
|
|
379
379
|
for (const [source, clone] of transition2.a) {
|
|
380
|
-
if (source === clone || source.
|
|
380
|
+
if (source === clone || source.l !== transition2)
|
|
381
381
|
continue;
|
|
382
382
|
if (clone.a)
|
|
383
383
|
replaceSourceObservers(clone, transition2);
|
|
@@ -385,14 +385,14 @@ function finishTransition(transition2) {
|
|
|
385
385
|
source.emptyDisposal();
|
|
386
386
|
Object.assign(source, clone);
|
|
387
387
|
delete source.g;
|
|
388
|
-
delete source.
|
|
388
|
+
delete source.l;
|
|
389
389
|
}
|
|
390
390
|
globalQueue.f[0].push.apply(globalQueue.f[0], transition2.f[0]);
|
|
391
391
|
globalQueue.f[1].push.apply(globalQueue.f[1], transition2.f[1]);
|
|
392
392
|
resolveQueues(transition2.e);
|
|
393
393
|
transition2.I = true;
|
|
394
394
|
for (const reset of transition2.W) {
|
|
395
|
-
delete reset.
|
|
395
|
+
delete reset.l;
|
|
396
396
|
reset();
|
|
397
397
|
}
|
|
398
398
|
globalQueue.flush();
|
|
@@ -419,7 +419,7 @@ var Owner = class {
|
|
|
419
419
|
c = STATE_CLEAN;
|
|
420
420
|
n = null;
|
|
421
421
|
w = defaultContext;
|
|
422
|
-
|
|
422
|
+
k = globalQueue;
|
|
423
423
|
ea = 0;
|
|
424
424
|
id = null;
|
|
425
425
|
constructor(id = null, skipAppend = false) {
|
|
@@ -440,8 +440,8 @@ var Owner = class {
|
|
|
440
440
|
if (child.w !== this.w) {
|
|
441
441
|
child.w = { ...this.w, ...child.w };
|
|
442
442
|
}
|
|
443
|
-
if (this.
|
|
444
|
-
child.
|
|
443
|
+
if (this.k)
|
|
444
|
+
child.k = this.k;
|
|
445
445
|
}
|
|
446
446
|
dispose(self = true) {
|
|
447
447
|
if (this.c === STATE_DISPOSED)
|
|
@@ -568,7 +568,7 @@ var Computation = class extends Owner {
|
|
|
568
568
|
aa = DEFAULT_FLAGS;
|
|
569
569
|
M = -1;
|
|
570
570
|
G = false;
|
|
571
|
-
|
|
571
|
+
l;
|
|
572
572
|
g;
|
|
573
573
|
constructor(initialValue, compute2, options) {
|
|
574
574
|
super(options?.id, compute2 === null);
|
|
@@ -583,7 +583,7 @@ var Computation = class extends Owner {
|
|
|
583
583
|
if (options?.unobserved)
|
|
584
584
|
this.da = options?.unobserved;
|
|
585
585
|
if (ActiveTransition) {
|
|
586
|
-
this.
|
|
586
|
+
this.l = ActiveTransition;
|
|
587
587
|
ActiveTransition.a.set(this, this);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
@@ -973,17 +973,17 @@ var Effect = class extends Computation {
|
|
|
973
973
|
this.A = options?.render ? EFFECT_RENDER : EFFECT_USER;
|
|
974
974
|
if (this.A === EFFECT_RENDER) {
|
|
975
975
|
this.L = function(p) {
|
|
976
|
-
return !this.g && clock > this.
|
|
976
|
+
return !this.g && clock > this.k.created && !(this.h & ERROR_BIT) ? latest(() => compute2(p)) : compute2(p);
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
979
|
this.H();
|
|
980
|
-
!options?.defer && (this.A === EFFECT_USER ? this.
|
|
980
|
+
!options?.defer && (this.A === EFFECT_USER ? this.k.enqueue(this.A, this.C.bind(this)) : this.C(this.A));
|
|
981
981
|
}
|
|
982
982
|
write(value, flags = 0) {
|
|
983
983
|
if (this.c == STATE_DIRTY) {
|
|
984
984
|
this.h = flags;
|
|
985
985
|
if (this.A === EFFECT_RENDER) {
|
|
986
|
-
this.
|
|
986
|
+
this.k.notify(this, LOADING_BIT | ERROR_BIT, this.h);
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
if (value === UNCHANGED)
|
|
@@ -997,7 +997,7 @@ var Effect = class extends Computation {
|
|
|
997
997
|
if (this.c >= state || skipQueue)
|
|
998
998
|
return;
|
|
999
999
|
if (this.c === STATE_CLEAN)
|
|
1000
|
-
this.
|
|
1000
|
+
this.k.enqueue(this.A, this.C.bind(this));
|
|
1001
1001
|
this.c = state;
|
|
1002
1002
|
}
|
|
1003
1003
|
Y(mask, newFlags2) {
|
|
@@ -1013,7 +1013,7 @@ var Effect = class extends Computation {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
N(error) {
|
|
1015
1015
|
this.K = error;
|
|
1016
|
-
this.
|
|
1016
|
+
this.k.notify(this, LOADING_BIT, 0);
|
|
1017
1017
|
this.h = ERROR_BIT;
|
|
1018
1018
|
if (this.A === EFFECT_USER) {
|
|
1019
1019
|
try {
|
|
@@ -1025,7 +1025,7 @@ var Effect = class extends Computation {
|
|
|
1025
1025
|
error = e;
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
|
-
if (!this.
|
|
1028
|
+
if (!this.k.notify(this, ERROR_BIT, ERROR_BIT))
|
|
1029
1029
|
throw error;
|
|
1030
1030
|
}
|
|
1031
1031
|
J() {
|
|
@@ -1036,6 +1036,7 @@ var Effect = class extends Computation {
|
|
|
1036
1036
|
this.Z = void 0;
|
|
1037
1037
|
this.O?.();
|
|
1038
1038
|
this.O = void 0;
|
|
1039
|
+
this.k.notify(this, ERROR_BIT | LOADING_BIT, 0);
|
|
1039
1040
|
super.J();
|
|
1040
1041
|
}
|
|
1041
1042
|
C(type) {
|
|
@@ -1046,7 +1047,7 @@ var Effect = class extends Computation {
|
|
|
1046
1047
|
try {
|
|
1047
1048
|
effect.O = effect.ba(effect.j, effect._);
|
|
1048
1049
|
} catch (e) {
|
|
1049
|
-
if (!effect.
|
|
1050
|
+
if (!effect.k.notify(effect, ERROR_BIT, ERROR_BIT))
|
|
1050
1051
|
throw e;
|
|
1051
1052
|
} finally {
|
|
1052
1053
|
effect._ = effect.j;
|
|
@@ -1066,7 +1067,7 @@ var EagerComputation = class extends Computation {
|
|
|
1066
1067
|
if (this.c >= state && !this.G)
|
|
1067
1068
|
return;
|
|
1068
1069
|
if (!skipQueue && (this.c === STATE_CLEAN || this.c === STATE_CHECK && this.G))
|
|
1069
|
-
this.
|
|
1070
|
+
this.k.enqueue(EFFECT_PURE, this.C.bind(this));
|
|
1070
1071
|
super.x(state, skipQueue);
|
|
1071
1072
|
}
|
|
1072
1073
|
C() {
|
|
@@ -1082,7 +1083,7 @@ var FirewallComputation = class extends Computation {
|
|
|
1082
1083
|
if (this.c >= state && !this.G)
|
|
1083
1084
|
return;
|
|
1084
1085
|
if (!skipQueue && (this.c === STATE_CLEAN || this.c === STATE_CHECK && this.G))
|
|
1085
|
-
this.
|
|
1086
|
+
this.k.enqueue(EFFECT_PURE, this.C.bind(this));
|
|
1086
1087
|
super.x(state, true);
|
|
1087
1088
|
this.G = !!skipQueue;
|
|
1088
1089
|
}
|
|
@@ -2156,14 +2157,14 @@ var BoundaryComputation = class extends EagerComputation {
|
|
|
2156
2157
|
if (this.U & LOADING_BIT && !(this.h & UNINITIALIZED_BIT)) {
|
|
2157
2158
|
flags &= ~LOADING_BIT;
|
|
2158
2159
|
}
|
|
2159
|
-
this.
|
|
2160
|
+
this.k.notify(this, this.U, flags);
|
|
2160
2161
|
return this.j;
|
|
2161
2162
|
}
|
|
2162
2163
|
};
|
|
2163
2164
|
function createBoundChildren(owner, fn, queue, mask) {
|
|
2164
|
-
const parentQueue = owner.
|
|
2165
|
-
parentQueue.addChild(owner.
|
|
2166
|
-
onCleanup(() => parentQueue.removeChild(owner.
|
|
2165
|
+
const parentQueue = owner.k;
|
|
2166
|
+
parentQueue.addChild(owner.k = queue);
|
|
2167
|
+
onCleanup(() => parentQueue.removeChild(owner.k));
|
|
2167
2168
|
return compute(
|
|
2168
2169
|
owner,
|
|
2169
2170
|
() => {
|
|
@@ -2293,7 +2294,7 @@ function createErrorBoundary(fn, fallback) {
|
|
|
2293
2294
|
if (ActiveTransition && !node2.g)
|
|
2294
2295
|
node2 = cloneGraph(node2);
|
|
2295
2296
|
node2.c = STATE_DIRTY;
|
|
2296
|
-
node2.
|
|
2297
|
+
node2.k?.enqueue(node2.A, node2.C.bind(node2));
|
|
2297
2298
|
}
|
|
2298
2299
|
});
|
|
2299
2300
|
});
|