TODO: Unsoundness :(

This commit is contained in:
JMS55 2023-12-07 11:27:22 -08:00
parent 939c12d78f
commit 4eacde53fb

View file

@ -9,6 +9,7 @@ use bevy::{
use dioxus_core::{Element, Scope, ScopeState, VirtualDom};
use std::mem;
// TODO: This is not sound. Can't borrow the world while iterating over DioxusUiRoots.
pub fn tick_dioxus_ui(world: &mut World) {
let world_ptr: *mut World = world;
let world_cell = world.as_unsafe_world_cell();