Closed JMS55 closed 3 months ago
Dioxus 0.5
If I have a VirtualDom stored in another struct ui_root, currently I must use the replace_with crate and do this:
ui_root
replace_with_or_abort(&mut ui_root.virtual_dom, |virtual_dom| { virtual_dom.with_root_context(EcsContext { world }) });
Adding this, but just fyi you can use this method today:
virtualdom.runtime().on_scope(ScopeId(0), || provide_root_context(some_ctx));
Dioxus 0.5
If I have a VirtualDom stored in another struct
ui_root
, currently I must use the replace_with crate and do this: