소스 검색

remove static bound from props

Evan Almloff 1 년 전
부모
커밋
998f9e0d00
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,