Browse Source

prevent calling __bool__ for is_hydrated

Benedikt Bartscher 1 year ago
parent
commit
7789118af3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reflex/state.py

+ 1 - 1
reflex/state.py

@@ -1763,7 +1763,7 @@ class OnLoadInternalState(State):
         # Do not app.compile_()!  It should be already compiled by now.
         app = getattr(prerequisites.get_app(), constants.CompileVars.APP)
         load_events = app.get_load_events(self.router.page.path)
-        if not load_events and self.is_hydrated:
+        if not load_events and self.is_hydrated is True:
             return  # Fast path for page-to-page navigation
         if not load_events:
             self.is_hydrated = True