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 2023-02-09 10:25:59 -08:00 committed by GitHub
commit ede0ef037a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {