fix: diffing debug in push_all_root_nodes() (#5413)

This commit is contained in:
Acheul authored and GitHub committed 2026-03-26 09:18:14 -07:00
1 parent cece12b57e
commit a42dd1320b
2 files changed
+162 -16

No files matched your search

+7 -1
View File
@@ -500,8 +500,14 @@ impl VNode {
let node = dom.get_scope(scope).unwrap().root_node();
node.push_all_root_nodes(dom, to)
}
// For a single dynamic node of Placeholder or Text, push its element id
Some((idx, DynamicNode::Placeholder(_) | DynamicNode::Text(_))) => {
let id = mount.mounted_dynamic_nodes[idx];
to.push_root(crate::ElementId(id));
1
}
// This is a static root node or a single dynamic node, just push it
None | Some((_, DynamicNode::Placeholder(_) | DynamicNode::Text(_))) => {
None => {
to.push_root(mount.root_ids[root_idx]);
1
}