소스 검색

remove the mount information when a node is dismounted

Evan Almloff 1 년 전
부모
커밋
41abffb267
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      packages/core/src/diff/node.rs

+ 3 - 0
packages/core/src/diff/node.rs

@@ -213,6 +213,9 @@ impl VNode {
         // Clean up the roots, assuming we need to generate mutations for these
         // This is done last in order to preserve Node ID reclaim order (reclaim in reverse order of claim)
         self.reclaim_roots(mount, dom, to, gen_muts);
+
+        // Remove the mount information
+        dom.mounts.remove(mount.0);
     }
 
     fn reclaim_roots(