Ver Fonte

prevent calling __bool__ for is_hydrated

Benedikt Bartscher há 1 ano atrás
pai
commit
7789118af3
1 ficheiros alterados com 1 adições e 1 exclusões
  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.
         # Do not app.compile_()!  It should be already compiled by now.
         app = getattr(prerequisites.get_app(), constants.CompileVars.APP)
         app = getattr(prerequisites.get_app(), constants.CompileVars.APP)
         load_events = app.get_load_events(self.router.page.path)
         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
             return  # Fast path for page-to-page navigation
         if not load_events:
         if not load_events:
             self.is_hydrated = True
             self.is_hydrated = True