Merge pull request #824 from Demonthos/fix-diffing-lists-of-fragment-components

Fix keyed diffing with fragment node children
This commit is contained in:
Jon Kelley authored and GitHub committed 2023-02-09 10:25:59 -08:00
commit ede0ef037a
1 file changed
+2 -2
+2 -2
View File
@@ -717,7 +717,7 @@ impl<'b> VirtualDom {
Fragment(nodes) => nodes
.iter()
.map(|node| self.push_all_real_nodes(node))
.count(),
.sum(),
Component(comp) => {
let scope = comp.scope.get().unwrap();
@@ -729,7 +729,7 @@ impl<'b> VirtualDom {
}
}
})
.count()
.sum()
}
fn create_children(&mut self, nodes: impl IntoIterator<Item = &'b VNode<'b>>) -> usize {