mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 22:54:12 +00:00
Merge pull request #824 from Demonthos/fix-diffing-lists-of-fragment-components
Fix keyed diffing with fragment node children
This commit is contained in:
commit
ede0ef037a
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue