make the router and navigator Copy

This commit is contained in:
Evan Almloff committed 2024-01-18 12:02:38 -06:00
1 parent 89b1e56fc3
commit a0f1b1fc3e
3 files changed
+78 -90

No files matched your search

+1 -11
View File
@@ -75,15 +75,5 @@ pub fn launch(
virtual_dom.insert_any_root_context(context());
}
#[cfg(feature = "tokio")]
tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.unwrap()
.block_on(tokio::task::unconstrained(async move {
launch_with_props_blocking(virtual_dom, platform_config)
}));
#[cfg(not(feature = "tokio"))]
launch_with_props_blocking(virtual_dom, platform_config)
launch_virtual_dom(virtual_dom, desktop_config)
}