Fix context trait params

This commit is contained in:
Jonathan Kelley committed 2024-01-18 19:49:20 -08:00
1 parent 6ed3aafb2f
commit 391fe15db8
4 files changed
+33 -40

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ use std::any::Any;
/// For a builder API, see `LaunchBuilder` defined in the `dioxus` crate.
pub fn launch(
root: fn() -> Element,
contexts: Vec<Box<dyn Fn() -> Box<dyn Any> + Send + Sync>>,
contexts: Vec<Box<dyn Fn() -> Box<dyn Any>>>,
platform_config: Config,
) {
let mut vdom = VirtualDom::new(root);