浏览代码

don't post init twice

Khaleel Al-Adhami 2 周之前
父节点
当前提交
25615412e0
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      reflex/components/component.py

+ 1 - 3
reflex/components/component.py

@@ -1130,9 +1130,7 @@ class Component(BaseComponent, ABC):
         Returns:
             The component.
         """
-        comp = cls(id=props.get("id"), children=list(children))
-        comp._post_init(children=list(children), **props)
-        return comp
+        return cls(id=props.get("id"), children=list(children), **props)
 
     @classmethod
     def _unsafe_create(