update vnode ptr when parent of component reruns

This commit is contained in:
Evan Almloff committed 2023-09-04 09:57:26 -05:00
1 parent cfc6887e34
commit d26aa95bcd
3 files changed
+17 -7

No files matched your search

+2 -2
View File
@@ -78,7 +78,7 @@ impl VirtualDom {
}
}
pub(crate) fn update_template(&mut self, el: ElementId, node: &VNode) {
pub(crate) fn update_template(&mut self, el: ElementId, node: *const VNode) {
let bubble_id = self.elements[el.0].unwrap();
self.update_template_bubble(bubble_id, node)
}
@@ -135,7 +135,7 @@ impl VirtualDom {
}
c.props.take();
if let Some(bubble_id) = c.bubble_id.get() {
self.element_refs.remove(bubble_id.0);
self.element_refs.try_remove(bubble_id.0);
}
}
DynamicNode::Fragment(nodes) => {