浏览代码

fix the bounds on fullstack props

Evan Almloff 1 年之前
父节点
当前提交
d20422bb0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/dioxus/src/launch.rs

+ 1 - 1
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<dyn Any> + Send + Sync + 'static) -> Self {
         self.contexts
-            .push(Box::new(state) as Box<dyn Fn() -> Box<dyn Any> + Send>);
+            .push(Box::new(state) as Box<dyn Fn() -> Box<dyn Any> + Send + Sync>);
         self
     }