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

This commit is contained in:
Jonathan Kelley 2024-03-07 18:02:44 -08:00
parent 3e5edff724
commit b05ea0b202
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -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 _);
}
}