sum nodes pushed instead of counting them
This commit is contained in:
1 parent
a6c13c8ad0
commit
362aadb021
1 file changed
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user