소스 검색

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(