mol_jsx_lib 0.0.431 → 0.0.433

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.mjs CHANGED
@@ -1126,9 +1126,9 @@ var $;
1126
1126
  "use strict";
1127
1127
  var $;
1128
1128
  (function ($) {
1129
- let auto = null;
1130
- function $mol_wire_auto(next = auto) {
1131
- return auto = next;
1129
+ $.$mol_wire_auto_sub = null;
1130
+ function $mol_wire_auto(next = $.$mol_wire_auto_sub) {
1131
+ return $.$mol_wire_auto_sub = next;
1132
1132
  }
1133
1133
  $.$mol_wire_auto = $mol_wire_auto;
1134
1134
  $.$mol_wire_affected = [];
@@ -1254,6 +1254,9 @@ var $;
1254
1254
  class $mol_wire_pub_sub extends $mol_wire_pub {
1255
1255
  pub_from = 0;
1256
1256
  cursor = $mol_wire_cursor.stale;
1257
+ get temp() {
1258
+ return false;
1259
+ }
1257
1260
  get pub_list() {
1258
1261
  const res = [];
1259
1262
  const max = this.cursor >= 0 ? this.cursor : this.sub_from;
@@ -1826,7 +1829,7 @@ var $;
1826
1829
  const sub = $mol_wire_auto();
1827
1830
  const existen = sub?.track_next();
1828
1831
  reuse: if (existen) {
1829
- if (existen.constructor.name !== '$mol_wire_task')
1832
+ if (!existen.temp)
1830
1833
  break reuse;
1831
1834
  if (existen.host !== host)
1832
1835
  break reuse;
@@ -1839,6 +1842,9 @@ var $;
1839
1842
  return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1840
1843
  };
1841
1844
  }
1845
+ get temp() {
1846
+ return true;
1847
+ }
1842
1848
  complete() {
1843
1849
  if ($mol_promise_like(this.cache))
1844
1850
  return;
@@ -1994,7 +2000,7 @@ var $;
1994
2000
  return this.resync([...this.args, next]);
1995
2001
  if (!$mol_wire_fiber.warm)
1996
2002
  return this.result();
1997
- if ($mol_wire_auto()?.constructor.name === '$mol_wire_task') {
2003
+ if ($mol_wire_auto()?.temp) {
1998
2004
  return this.once();
1999
2005
  }
2000
2006
  else {
@@ -2110,7 +2116,7 @@ var $;
2110
2116
  if ((args.length === 0) || (args[0] === undefined)) {
2111
2117
  if (!$mol_wire_fiber.warm)
2112
2118
  return atom.result();
2113
- if ($mol_wire_auto()?.constructor.name === '$mol_wire_task') {
2119
+ if ($mol_wire_auto()?.temp) {
2114
2120
  return atom.once();
2115
2121
  }
2116
2122
  else {
@@ -2147,7 +2153,7 @@ var $;
2147
2153
  if ((args.length === 1) || (args[1] === undefined)) {
2148
2154
  if (!$mol_wire_fiber.warm)
2149
2155
  return atom.result();
2150
- if ($mol_wire_auto()?.constructor.name === '$mol_wire_task') {
2156
+ if ($mol_wire_auto()?.temp) {
2151
2157
  return atom.once();
2152
2158
  }
2153
2159
  else {