clear borrowed props after ensure_drop_safety

This commit is contained in:
Evan Almloff committed 2023-09-06 16:12:01 -05:00
1 parent 02456c1068
commit 992ac4a3fb
4 files changed
+20 -13

No files matched your search

+2 -2
View File
@@ -144,7 +144,7 @@ impl<'b> VirtualDom {
.enumerate()
.for_each(|(dyn_node_idx, (left_node, right_node))| {
let current_ref = ElementRef {
template: Some(right_template),
template: Some(right_template.into()),
path: ElementPath {
path: left_template.template.get().node_paths[dyn_node_idx],
},
@@ -176,7 +176,7 @@ impl<'b> VirtualDom {
right.id.set(left.id.get());
right.parent.set(left.parent.get());
// Update the template
self.update_template(left.id.get().unwrap(), parent.template.unwrap());
self.update_template(left.id.get().unwrap(), parent.template.unwrap().as_ptr());
},
(Component(left), Component(right)) => self.diff_vcomponent(left, right, Some(parent)),
(Placeholder(left), Fragment(right)) => self.replace_placeholder(left, *right, parent),