mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 20:53:06 +00:00
wip: fix invalid is_empty bug
This commit is contained in:
parent
f15e1fa892
commit
c7d2d9d050
1 changed files with 6 additions and 2 deletions
|
@ -328,8 +328,8 @@ impl<'bump> DiffMachine<'bump> {
|
|||
self.mutations.set_attribute(attr);
|
||||
}
|
||||
|
||||
if children.is_empty() {
|
||||
self.stack.element_id_stack.push(real_id);
|
||||
if !children.is_empty() {
|
||||
// self.stack.element_id_stack.push(real_id);
|
||||
// push our element_id onto the stack
|
||||
// drop our element off the stack
|
||||
self.stack.create_children(children, MountType::Append);
|
||||
|
@ -522,6 +522,10 @@ impl<'bump> DiffMachine<'bump> {
|
|||
}
|
||||
}
|
||||
|
||||
if has_comitted {
|
||||
self.mutations.pop();
|
||||
}
|
||||
|
||||
self.diff_children(old.children, new.children);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue