mol_plot_all 1.2.249 → 1.2.252

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
@@ -1642,6 +1642,8 @@ var $;
1642
1642
  var $;
1643
1643
  (function ($) {
1644
1644
  function $mol_wire_async(obj) {
1645
+ let fiber;
1646
+ const temp = $mol_wire_task.getter(obj);
1645
1647
  return new Proxy(obj, {
1646
1648
  get(obj, field) {
1647
1649
  const val = obj[field];
@@ -1656,8 +1658,8 @@ var $;
1656
1658
  };
1657
1659
  },
1658
1660
  apply(obj, self, args) {
1659
- const temp = $mol_wire_task.getter(obj);
1660
- const fiber = temp(self, args);
1661
+ fiber?.destructor();
1662
+ fiber = temp(self, args);
1661
1663
  return fiber.async();
1662
1664
  },
1663
1665
  });