prevent calling __bool__ for is_hydrated

This commit is contained in:
Benedikt Bartscher 2024-02-29 21:54:36 +01:00
parent 211f9f3598
commit 7789118af3
No known key found for this signature in database

View File

@ -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