Explorar o código

remove static bound from props

Evan Almloff hai 1 ano
pai
achega
998f9e0d00
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/core/src/scopes.rs

+ 1 - 1
packages/core/src/scopes.rs

@@ -417,7 +417,7 @@ impl<'src> ScopeState {
     /// fn(Scope<Props>) -> Element;
     /// async fn(Scope<Props<'_>>) -> Element;
     /// ```
-    pub fn component<P: 'static>(
+    pub fn component<P>(
         &'src self,
         component: fn(Scope<'src, P>) -> Element<'src>,
         props: P,