Browse Source

don't post init twice

Khaleel Al-Adhami 2 weeks ago
parent
commit
25615412e0
1 changed files with 1 additions and 3 deletions
  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(