This commit is contained in:
Evan Almloff committed 2023-01-15 13:52:06 -06:00
1 parent 1737c55575
commit d7f9a07f4e
3 files changed
+17 -2

No files matched your search

+5
View File
@@ -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) {