소스 검색

FIx: pushroot should actually push the right root on native mutations

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

+ 2 - 2
packages/interpreter/src/write_native_mutations.rs

@@ -196,7 +196,7 @@ impl WriteMutations for MutationState {
         self.channel.remove(id.0 as u32);
     }
 
-    fn push_root(&mut self, _id: dioxus_core::ElementId) {
-        self.channel.push_root(0);
+    fn push_root(&mut self, id: dioxus_core::ElementId) {
+        self.channel.push_root(id.0 as _);
     }
 }