@sprlab/wccompiler 0.16.15 → 0.16.16
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/lib/codegen.js +5 -0
- package/package.json +1 -1
package/lib/codegen.js
CHANGED
|
@@ -1789,6 +1789,11 @@ export function generateComponent(parseResult, options = {}) {
|
|
|
1789
1789
|
lines.push(` const __key = ${keyExpr};`);
|
|
1790
1790
|
lines.push(' if (__oldMap.has(__key)) {');
|
|
1791
1791
|
lines.push(' const node = __oldMap.get(__key);');
|
|
1792
|
+
|
|
1793
|
+
// BUG-0012 FIX: Update all dynamic properties when reusing nodes
|
|
1794
|
+
// Re-run setup to ensure bindings reflect current item data
|
|
1795
|
+
generateItemSetup(lines, forBlock, itemVar, indexVar, propNames, signalNamesSet, computedNamesSet, methodNames);
|
|
1796
|
+
|
|
1792
1797
|
lines.push(' __newMap.set(__key, node);');
|
|
1793
1798
|
lines.push(' __newNodes.push(node);');
|
|
1794
1799
|
lines.push(' __oldMap.delete(__key);');
|
package/package.json
CHANGED