瀏覽代碼

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,