sum nodes pushed instead of counting them

This commit is contained in:
Evan Almloff committed 2023-02-09 09:03:35 -06:00
1 parent a6c13c8ad0
commit 362aadb021
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 {