mol_jsx_lib 0.0.724 → 0.0.726

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.mjs CHANGED
@@ -1468,17 +1468,18 @@ var $;
1468
1468
  const field = task.name + '()';
1469
1469
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1470
1470
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1471
- const id = `${prefix}.${task.name}(${$mol_key(key).replace(/^"|"$/g, "'")})`;
1471
+ const key_str = $mol_key(key);
1472
1472
  if (dict) {
1473
- const existen = dict.get(id);
1473
+ const existen = dict.get(key_str);
1474
1474
  if (existen)
1475
1475
  return existen;
1476
1476
  }
1477
1477
  else {
1478
1478
  dict = (host ?? task)[field] = new Map();
1479
1479
  }
1480
+ const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
1480
1481
  const fiber = new $mol_wire_atom(id, task, host, [key]);
1481
- dict.set(id, fiber);
1482
+ dict.set(key_str, fiber);
1482
1483
  return fiber;
1483
1484
  }
1484
1485
  static watching = new Set();