@solidjs/signals 0.13.1 → 0.13.2
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 +3 -1
- package/dist/node.cjs +3 -1
- package/dist/prod.js +3 -1
- package/package.json +1 -1
package/dist/dev.js
CHANGED
|
@@ -1021,6 +1021,8 @@ function runEffect() {
|
|
|
1021
1021
|
try {
|
|
1022
1022
|
this._cleanup = this._effectFn(this._value, this._prevValue);
|
|
1023
1023
|
} catch (error) {
|
|
1024
|
+
this._error = new StatusError(this, error);
|
|
1025
|
+
this._statusFlags |= STATUS_ERROR;
|
|
1024
1026
|
if (!this._queue.notify(this, STATUS_ERROR, STATUS_ERROR)) throw error;
|
|
1025
1027
|
} finally {
|
|
1026
1028
|
setStrictRead(prevStrictRead);
|
|
@@ -1519,7 +1521,7 @@ function read(el) {
|
|
|
1519
1521
|
(currentOptimisticLane !== null &&
|
|
1520
1522
|
(el._overrideValue !== undefined ||
|
|
1521
1523
|
el._optimisticLane ||
|
|
1522
|
-
owner === el ||
|
|
1524
|
+
(owner === el && stale) ||
|
|
1523
1525
|
!!(owner._statusFlags & STATUS_PENDING))) ||
|
|
1524
1526
|
el._pendingValue === NOT_PENDING ||
|
|
1525
1527
|
(stale && el._transition && activeTransition !== el._transition)
|
package/dist/node.cjs
CHANGED
|
@@ -955,6 +955,8 @@ function runEffect() {
|
|
|
955
955
|
try {
|
|
956
956
|
this.Te = this.Re(this.ae, this.He);
|
|
957
957
|
} catch (e) {
|
|
958
|
+
this.Y = new StatusError(this, e);
|
|
959
|
+
this.de |= d;
|
|
958
960
|
if (!this.fe.notify(this, d, d)) throw e;
|
|
959
961
|
} finally {
|
|
960
962
|
this.He = this.ae;
|
|
@@ -1392,7 +1394,7 @@ function read(e) {
|
|
|
1392
1394
|
}
|
|
1393
1395
|
if (e.pe !== undefined && e.pe !== S) return e.pe;
|
|
1394
1396
|
return !t ||
|
|
1395
|
-
(V !== null && (e.pe !== undefined || e.re || n === e || !!(n.de & a))) ||
|
|
1397
|
+
(V !== null && (e.pe !== undefined || e.re || (n === e && R) || !!(n.de & a))) ||
|
|
1396
1398
|
e.ce === S ||
|
|
1397
1399
|
(R && e.ne && C !== e.ne)
|
|
1398
1400
|
? e.ae
|
package/dist/prod.js
CHANGED
|
@@ -954,6 +954,8 @@ function runEffect() {
|
|
|
954
954
|
try {
|
|
955
955
|
this.We = this.Ue(this.fe, this.ke);
|
|
956
956
|
} catch (e) {
|
|
957
|
+
this.q = new StatusError(this, e);
|
|
958
|
+
this.Ee |= STATUS_ERROR;
|
|
957
959
|
if (!this.ce.notify(this, STATUS_ERROR, STATUS_ERROR)) throw e;
|
|
958
960
|
} finally {
|
|
959
961
|
this.ke = this.fe;
|
|
@@ -1393,7 +1395,7 @@ function read(e) {
|
|
|
1393
1395
|
if (e.Te !== undefined && e.Te !== NOT_PENDING) return e.Te;
|
|
1394
1396
|
return !t ||
|
|
1395
1397
|
(currentOptimisticLane !== null &&
|
|
1396
|
-
(e.Te !== undefined || e.ie || n === e || !!(n.Ee & STATUS_PENDING))) ||
|
|
1398
|
+
(e.Te !== undefined || e.ie || (n === e && stale) || !!(n.Ee & STATUS_PENDING))) ||
|
|
1397
1399
|
e.le === NOT_PENDING ||
|
|
1398
1400
|
(stale && e.ne && activeTransition !== e.ne)
|
|
1399
1401
|
? e.fe
|