Преглед на файлове

prevent calling __bool__ for is_hydrated

Benedikt Bartscher преди 1 година
родител
ревизия
7789118af3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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