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/web.js CHANGED
@@ -1344,8 +1344,9 @@ var $;
1344
1344
  return fiber;
1345
1345
  }
1346
1346
  static watching = new Set();
1347
+ static watcher = null;
1347
1348
  static watch() {
1348
- new $mol_after_frame($mol_wire_atom.watch);
1349
+ $mol_wire_atom.watcher = new $mol_after_frame($mol_wire_atom.watch);
1349
1350
  for (const atom of $mol_wire_atom.watching) {
1350
1351
  if (atom.cursor === $mol_wire_cursor.final) {
1351
1352
  $mol_wire_atom.watching.delete(atom);
@@ -1357,6 +1358,9 @@ var $;
1357
1358
  }
1358
1359
  }
1359
1360
  watch() {
1361
+ if (!$mol_wire_atom.watcher) {
1362
+ $mol_wire_atom.watcher = new $mol_after_frame($mol_wire_atom.watch);
1363
+ }
1360
1364
  $mol_wire_atom.watching.add(this);
1361
1365
  }
1362
1366
  resync(args) {
@@ -1433,7 +1437,6 @@ var $;
1433
1437
  $mol_wire_method
1434
1438
  ], $mol_wire_atom.prototype, "once", null);
1435
1439
  $.$mol_wire_atom = $mol_wire_atom;
1436
- $mol_wire_atom.watch();
1437
1440
  })($ || ($ = {}));
1438
1441
  //mol/wire/atom/atom.ts
1439
1442
  ;