diff --git a/packages/dioxus/src/launch.rs b/packages/dioxus/src/launch.rs index 65b9c3a65..7650b988e 100644 --- a/packages/dioxus/src/launch.rs +++ b/packages/dioxus/src/launch.rs @@ -31,7 +31,7 @@ impl LaunchBuilder { /// Inject state into the root component's context that is created on the thread that the app is launched on. pub fn context_provider(mut self, state: impl Fn() -> Box + Send + Sync + 'static) -> Self { self.contexts - .push(Box::new(state) as Box Box + Send>); + .push(Box::new(state) as Box Box + Send + Sync>); self }