From b05ea0b20250027fc48243bbdbf32f32c25e1d7f Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Thu, 7 Mar 2024 18:02:44 -0800 Subject: [PATCH] FIx: pushroot should actually push the right root on native mutations --- packages/interpreter/src/write_native_mutations.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/interpreter/src/write_native_mutations.rs b/packages/interpreter/src/write_native_mutations.rs index 1f4adbd13..41fa9c5c6 100644 --- a/packages/interpreter/src/write_native_mutations.rs +++ b/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 _); } }