mol_jsx_lib 0.0.110 → 0.0.111
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.deps.json +1 -1
- package/node.esm.js +5 -1
- package/node.esm.js.map +1 -1
- package/node.js +5 -1
- package/node.js.map +1 -1
- package/node.test.js +5 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.esm.js +5 -1
- package/web.esm.js.map +1 -1
- package/web.js +5 -1
- package/web.js.map +1 -1
package/node.js
CHANGED
|
@@ -1707,7 +1707,8 @@ var $;
|
|
|
1707
1707
|
class $mol_wire_task extends $mol_wire_fiber {
|
|
1708
1708
|
static getter(task) {
|
|
1709
1709
|
return function $mol_wire_task_get(host, args) {
|
|
1710
|
-
const
|
|
1710
|
+
const sub = $mol_wire_auto();
|
|
1711
|
+
const existen = sub?.track_next();
|
|
1711
1712
|
reuse: if (existen) {
|
|
1712
1713
|
if (!(existen instanceof $mol_wire_task))
|
|
1713
1714
|
break reuse;
|
|
@@ -1719,6 +1720,9 @@ var $;
|
|
|
1719
1720
|
break reuse;
|
|
1720
1721
|
return existen;
|
|
1721
1722
|
}
|
|
1723
|
+
if (existen && sub instanceof $mol_wire_task) {
|
|
1724
|
+
$mol_fail(new Error(`$mol_wire_task detects nonidempotency\n${existen}`));
|
|
1725
|
+
}
|
|
1722
1726
|
return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
|
|
1723
1727
|
};
|
|
1724
1728
|
}
|