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.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
  ;