mol_jsx_lib 0.0.360 → 0.0.362
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/node.d.ts +1 -0
- package/node.deps.json +1 -1
- package/node.esm.js +5 -2
- package/node.esm.js.map +1 -1
- package/node.js +5 -2
- package/node.js.map +1 -1
- package/node.test.js +5 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -0
- package/web.deps.json +1 -1
- package/web.esm.js +5 -2
- package/web.esm.js.map +1 -1
- package/web.js +5 -2
- package/web.js.map +1 -1
package/node.js
CHANGED
|
@@ -1852,8 +1852,9 @@ var $;
|
|
|
1852
1852
|
return fiber;
|
|
1853
1853
|
}
|
|
1854
1854
|
static watching = new Set();
|
|
1855
|
+
static watcher = null;
|
|
1855
1856
|
static watch() {
|
|
1856
|
-
new $mol_after_frame($mol_wire_atom.watch);
|
|
1857
|
+
$mol_wire_atom.watcher = new $mol_after_frame($mol_wire_atom.watch);
|
|
1857
1858
|
for (const atom of $mol_wire_atom.watching) {
|
|
1858
1859
|
if (atom.cursor === $mol_wire_cursor.final) {
|
|
1859
1860
|
$mol_wire_atom.watching.delete(atom);
|
|
@@ -1865,6 +1866,9 @@ var $;
|
|
|
1865
1866
|
}
|
|
1866
1867
|
}
|
|
1867
1868
|
watch() {
|
|
1869
|
+
if (!$mol_wire_atom.watcher) {
|
|
1870
|
+
$mol_wire_atom.watcher = new $mol_after_frame($mol_wire_atom.watch);
|
|
1871
|
+
}
|
|
1868
1872
|
$mol_wire_atom.watching.add(this);
|
|
1869
1873
|
}
|
|
1870
1874
|
resync(args) {
|
|
@@ -1941,7 +1945,6 @@ var $;
|
|
|
1941
1945
|
$mol_wire_method
|
|
1942
1946
|
], $mol_wire_atom.prototype, "once", null);
|
|
1943
1947
|
$.$mol_wire_atom = $mol_wire_atom;
|
|
1944
|
-
$mol_wire_atom.watch();
|
|
1945
1948
|
})($ || ($ = {}));
|
|
1946
1949
|
//mol/wire/atom/atom.ts
|
|
1947
1950
|
;
|