mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
Merge branch 'master' into jk/fix-liveview
This commit is contained in:
commit
44dde38c63
1 changed files with 5 additions and 1 deletions
|
@ -355,7 +355,11 @@ impl<'b> VirtualDom {
|
||||||
self.reclaim(id)
|
self.reclaim(id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Placeholder(t) => self.reclaim(t.id.take().unwrap()),
|
Placeholder(t) => {
|
||||||
|
if let Some(id) = t.id.take() {
|
||||||
|
self.reclaim(id)
|
||||||
|
}
|
||||||
|
}
|
||||||
Fragment(nodes) => nodes.iter().for_each(|node| self.clean_up_node(node)),
|
Fragment(nodes) => nodes.iter().for_each(|node| self.clean_up_node(node)),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue