correct the order of .State

This commit is contained in:
Khaleel Al-Adhami 2025-02-05 10:26:48 -08:00
parent be924c750b
commit 146a4db4b2

View File

@ -2472,8 +2472,8 @@ class ComponentState(State, mixin=True):
# Save a reference to the dynamic state for pickle/unpickle.
setattr(reflex.istate.dynamic, state_cls_name, component_state)
component = component_state.get_component(*children, **props)
component.State = component_state
component = into_component(component)
component.State = component_state
return component