소스 검색

chore: help resolve conflicts

Jonathan Kelley 2 년 전
부모
커밋
b9aad5e8f4
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      packages/core/src/arena.rs

+ 5 - 5
packages/core/src/arena.rs

@@ -83,13 +83,13 @@ impl VirtualDom {
 
         self.scopes[id.0].props.take();
 
+        let scope = &mut self.scopes[id.0];
+
         // Drop all the hooks once the children are dropped
         // this means we'll drop hooks bottom-up
-        self.scopes[id.0]
-            .hook_list
-            .get_mut()
-            .drain(..)
-            .for_each(|hook| drop(unsafe { BumpBox::from_raw(hook) }));
+        for hook in scope.hook_list.get_mut().drain(..) {
+            drop(unsafe { BumpBox::from_raw(hook) });
+        }
     }
 
     fn drop_scope_inner(&mut self, node: &VNode) {