chore: help resolve conflicts
This commit is contained in:
1 parent
b182a6ee75
commit
b9aad5e8f4
1 file changed
+5
-5
@@ -83,13 +83,13 @@ impl VirtualDom {
|
|||||||
|
|
||||||
self.scopes[id.0].props.take();
|
self.scopes[id.0].props.take();
|
||||||
|
|
||||||
|
let scope = &mut self.scopes[id.0];
|
||||||
|
|
||||||
// Drop all the hooks once the children are dropped
|
// Drop all the hooks once the children are dropped
|
||||||
// this means we'll drop hooks bottom-up
|
// this means we'll drop hooks bottom-up
|
||||||
self.scopes[id.0]
|
for hook in scope.hook_list.get_mut().drain(..) {
|
||||||
.hook_list
|
drop(unsafe { BumpBox::from_raw(hook) });
|
||||||
.get_mut()
|
}
|
||||||
.drain(..)
|
|
||||||
.for_each(|hook| drop(unsafe { BumpBox::from_raw(hook) }));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn drop_scope_inner(&mut self, node: &VNode) {
|
fn drop_scope_inner(&mut self, node: &VNode) {
|
||||||
|
|||||||
Reference in new issue
Block a user