From b2d533a76561c1e6aaf9da21afbf9ae192b437f3 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Fri, 6 Dec 2024 11:16:53 +0100 Subject: [PATCH] actually fix the special case --- reflex/state.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reflex/state.py b/reflex/state.py index 596762dd8..493489460 100644 --- a/reflex/state.py +++ b/reflex/state.py @@ -1332,9 +1332,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): return # For now, handle router_data updates as a special case if using redis. - # TODO: it would be better to check for the state manager instead of redis url - # however get_state_manager causes a circular import - if name == constants.ROUTER_DATA and get_config().redis_url: + if name == constants.ROUTER_DATA and self.parent_state is None: self.dirty_vars.add(name) self._mark_dirty()