diff --git a/reflex/components/component.py b/reflex/components/component.py index 50cc13007..48f258392 100644 --- a/reflex/components/component.py +++ b/reflex/components/component.py @@ -39,6 +39,7 @@ from reflex.constants import ( PageNames, ) from reflex.constants.compiler import SpecialAttributes +from reflex.constants.state import FRONTEND_EVENT_STATE from reflex.event import ( EventCallback, EventChain, @@ -1147,7 +1148,7 @@ class Component(BaseComponent, ABC): if isinstance(event, EventSpec): if ( event.handler.state_full_name - and event.handler.state_full_name != "state" + and event.handler.state_full_name != FRONTEND_EVENT_STATE ): return True else: