assign parents through fragments
This commit is contained in:
1 parent
35b643e23f
commit
d81d3ebaef
4 files changed
+13
-6
No files matched your search
@@ -776,15 +776,18 @@ impl<'b> VirtualDom {
|
||||
.sum()
|
||||
}
|
||||
|
||||
fn create_children(
|
||||
pub(crate) fn create_children(
|
||||
&mut self,
|
||||
nodes: impl IntoIterator<Item = &'b VNode<'b>>,
|
||||
parent: Option<ElementRef>,
|
||||
) -> usize {
|
||||
nodes.into_iter().fold(0, |acc, child| {
|
||||
self.assign_boundary_ref(parent, child);
|
||||
acc + self.create(child)
|
||||
})
|
||||
nodes
|
||||
.into_iter()
|
||||
.map(|child| {
|
||||
self.assign_boundary_ref(parent, child);
|
||||
self.create(child)
|
||||
})
|
||||
.sum()
|
||||
}
|
||||
|
||||
fn create_and_insert_before(
|
||||
|
||||
Reference in new issue
Block a user