fix
This commit is contained in:
1 parent
1737c55575
commit
d7f9a07f4e
3 files changed
+17
-2
No files matched your search
@@ -111,6 +111,11 @@ impl VirtualDom {
|
||||
for hook in scope.hook_list.get_mut().drain(..) {
|
||||
drop(unsafe { BumpBox::from_raw(hook) });
|
||||
}
|
||||
|
||||
// Drop all the futures once the hooks are dropped
|
||||
for task_id in scope.spawned_tasks.borrow_mut().drain() {
|
||||
scope.tasks.remove(task_id);
|
||||
}
|
||||
}
|
||||
|
||||
fn drop_scope_inner(&mut self, node: &VNode) {
|
||||
|
||||
Reference in new issue
Block a user