make dioxus an optional dependancy

This commit is contained in:
Evan Almloff committed 2023-02-04 20:45:29 -06:00
1 parent dd1d492e61
commit e4c7218fe8
9 files changed
+300 -432

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ pub struct DioxusState {
}
impl DioxusState {
pub fn new(rdom: &mut RealDom) -> Self {
pub fn create(rdom: &mut RealDom) -> Self {
rdom.insert_slab::<ElementId>();
let root_id = rdom.root_id();
let mut root = rdom.get_mut(root_id).unwrap();