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.test.js
CHANGED
|
@@ -1844,8 +1844,9 @@ var $;
|
|
|
1844
1844
|
return fiber;
|
|
1845
1845
|
}
|
|
1846
1846
|
static watching = new Set();
|
|
1847
|
+
static watcher = null;
|
|
1847
1848
|
static watch() {
|
|
1848
|
-
new $mol_after_frame($mol_wire_atom.watch);
|
|
1849
|
+
$mol_wire_atom.watcher = new $mol_after_frame($mol_wire_atom.watch);
|
|
1849
1850
|
for (const atom of $mol_wire_atom.watching) {
|
|
1850
1851
|
if (atom.cursor === $mol_wire_cursor.final) {
|
|
1851
1852
|
$mol_wire_atom.watching.delete(atom);
|
|
@@ -1857,6 +1858,9 @@ var $;
|
|
|
1857
1858
|
}
|
|
1858
1859
|
}
|
|
1859
1860
|
watch() {
|
|
1861
|
+
if (!$mol_wire_atom.watcher) {
|
|
1862
|
+
$mol_wire_atom.watcher = new $mol_after_frame($mol_wire_atom.watch);
|
|
1863
|
+
}
|
|
1860
1864
|
$mol_wire_atom.watching.add(this);
|
|
1861
1865
|
}
|
|
1862
1866
|
resync(args) {
|
|
@@ -1933,7 +1937,6 @@ var $;
|
|
|
1933
1937
|
$mol_wire_method
|
|
1934
1938
|
], $mol_wire_atom.prototype, "once", null);
|
|
1935
1939
|
$.$mol_wire_atom = $mol_wire_atom;
|
|
1936
|
-
$mol_wire_atom.watch();
|
|
1937
1940
|
})($ || ($ = {}));
|
|
1938
1941
|
//mol/wire/atom/atom.ts
|
|
1939
1942
|
;
|