mol_plot_all 1.2.251 → 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/node.js CHANGED
@@ -2121,6 +2121,8 @@ var $;
2121
2121
  var $;
2122
2122
  (function ($) {
2123
2123
  function $mol_wire_async(obj) {
2124
+ let fiber;
2125
+ const temp = $mol_wire_task.getter(obj);
2124
2126
  return new Proxy(obj, {
2125
2127
  get(obj, field) {
2126
2128
  const val = obj[field];
@@ -2135,8 +2137,8 @@ var $;
2135
2137
  };
2136
2138
  },
2137
2139
  apply(obj, self, args) {
2138
- const temp = $mol_wire_task.getter(obj);
2139
- const fiber = temp(self, args);
2140
+ fiber?.destructor();
2141
+ fiber = temp(self, args);
2140
2142
  return fiber.async();
2141
2143
  },
2142
2144
  });