Explorar o código

Merge pull request #2017 from DioxusLabs/jk/reject-invalid-keys

Fix: pushroot should actually push the right root on native mutations
Jonathan Kelley hai 1 ano
pai
achega
db83ed775b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 _);
     }
 }