mol_plot_all 1.2.297 → 1.2.298

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
@@ -1185,7 +1185,8 @@ var $;
1185
1185
  class $mol_wire_task extends $mol_wire_fiber {
1186
1186
  static getter(task) {
1187
1187
  return function $mol_wire_task_get(host, args) {
1188
- const existen = $mol_wire_auto()?.track_next();
1188
+ const sub = $mol_wire_auto();
1189
+ const existen = sub?.track_next();
1189
1190
  reuse: if (existen) {
1190
1191
  if (!(existen instanceof $mol_wire_task))
1191
1192
  break reuse;
@@ -1197,6 +1198,9 @@ var $;
1197
1198
  break reuse;
1198
1199
  return existen;
1199
1200
  }
1201
+ if (existen && sub instanceof $mol_wire_task) {
1202
+ $mol_fail(new Error(`$mol_wire_task detects nonidempotency\n${existen}`));
1203
+ }
1200
1204
  return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1201
1205
  };
1202
1206
  }