@solidjs/signals 0.6.0 → 0.6.1
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 +5 -5
- package/dist/node.cjs +5 -5
- package/dist/prod.js +5 -5
- package/package.json +1 -1
package/dist/dev.js
CHANGED
|
@@ -1989,15 +1989,15 @@ function resolve(fn) {
|
|
|
1989
1989
|
function createPending() {
|
|
1990
1990
|
const node = new Computation(false, null);
|
|
1991
1991
|
const reset = () => node.write(false);
|
|
1992
|
-
function write(
|
|
1992
|
+
function write() {
|
|
1993
1993
|
if (!ActiveTransition)
|
|
1994
|
-
return
|
|
1994
|
+
return false;
|
|
1995
1995
|
ActiveTransition.addOptimistic(reset);
|
|
1996
|
-
queueMicrotask(() => reset._transition && node.write(
|
|
1996
|
+
queueMicrotask(() => reset._transition && node.write(true));
|
|
1997
1997
|
}
|
|
1998
1998
|
function read() {
|
|
1999
|
-
node.read();
|
|
2000
|
-
return
|
|
1999
|
+
const v = node.read();
|
|
2000
|
+
return ActiveTransition ? false : v;
|
|
2001
2001
|
}
|
|
2002
2002
|
return [read, write];
|
|
2003
2003
|
}
|
package/dist/node.cjs
CHANGED
|
@@ -1992,15 +1992,15 @@ function resolve(fn) {
|
|
|
1992
1992
|
function createPending() {
|
|
1993
1993
|
const node = new Computation(false, null);
|
|
1994
1994
|
const reset = () => node.write(false);
|
|
1995
|
-
function write(
|
|
1995
|
+
function write() {
|
|
1996
1996
|
if (!ActiveTransition)
|
|
1997
|
-
return
|
|
1997
|
+
return false;
|
|
1998
1998
|
ActiveTransition.addOptimistic(reset);
|
|
1999
|
-
queueMicrotask(() => reset.j && node.write(
|
|
1999
|
+
queueMicrotask(() => reset.j && node.write(true));
|
|
2000
2000
|
}
|
|
2001
2001
|
function read() {
|
|
2002
|
-
node.read();
|
|
2003
|
-
return
|
|
2002
|
+
const v = node.read();
|
|
2003
|
+
return ActiveTransition ? false : v;
|
|
2004
2004
|
}
|
|
2005
2005
|
return [read, write];
|
|
2006
2006
|
}
|
package/dist/prod.js
CHANGED
|
@@ -1977,15 +1977,15 @@ function resolve(fn) {
|
|
|
1977
1977
|
function createPending() {
|
|
1978
1978
|
const node = new Computation(false, null);
|
|
1979
1979
|
const reset = () => node.write(false);
|
|
1980
|
-
function write(
|
|
1980
|
+
function write() {
|
|
1981
1981
|
if (!ActiveTransition)
|
|
1982
|
-
return
|
|
1982
|
+
return false;
|
|
1983
1983
|
ActiveTransition.addOptimistic(reset);
|
|
1984
|
-
queueMicrotask(() => reset.j && node.write(
|
|
1984
|
+
queueMicrotask(() => reset.j && node.write(true));
|
|
1985
1985
|
}
|
|
1986
1986
|
function read() {
|
|
1987
|
-
node.read();
|
|
1988
|
-
return
|
|
1987
|
+
const v = node.read();
|
|
1988
|
+
return ActiveTransition ? false : v;
|
|
1989
1989
|
}
|
|
1990
1990
|
return [read, write];
|
|
1991
1991
|
}
|