fix the bounds on fullstack props
This commit is contained in:
1 parent
259dcd4ebe
commit
d20422bb0f
1 file changed
+1
-1
@@ -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.
|
/// 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 {
|
pub fn context_provider(mut self, state: impl Fn() -> Box<dyn Any> + Send + Sync + 'static) -> Self {
|
||||||
self.contexts
|
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
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user