From e9cedd2a92ea63ffa5b3ff9ce5d4e26664ab6112 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Sat, 27 Jul 2024 21:29:20 +0200 Subject: [PATCH] fix default state names --- reflex/state.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reflex/state.py b/reflex/state.py index d567ed40c..f97697a4a 100644 --- a/reflex/state.py +++ b/reflex/state.py @@ -2313,7 +2313,9 @@ class FrontendEventExceptionState(State): class UpdateVarsInternalState(State): """Substate for handling internal state var updates.""" - _state_name: ClassVar[Optional[str]] = constants.CompileVars.UPDATE_VARS_INTERNAL + _state_name: ClassVar[Optional[str]] = ( + constants.CompileVars.UPDATE_VARS_INTERNAl_STATE + ) async def update_vars_internal(self, vars: dict[str, Any]) -> None: """Apply updates to fully qualified state vars. @@ -2340,7 +2342,7 @@ class OnLoadInternalState(State): This is a separate substate to avoid deserializing the entire state tree for every page navigation. """ - _state_name: ClassVar[Optional[str]] = constants.CompileVars.ON_LOAD_INTERNAL + _state_name: ClassVar[Optional[str]] = constants.CompileVars.ON_LOAD_INTERNAL_STATE def on_load_internal(self) -> list[Event | EventSpec] | None: """Queue on_load handlers for the current page.