From 467308e7c21a01205752ff14c2f2f1a453430aa5 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Mon, 28 Oct 2024 22:32:10 +0100 Subject: [PATCH] was this broken? --- reflex/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reflex/app.py b/reflex/app.py index 9a94e56e4..241064529 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -504,7 +504,10 @@ class App(MiddlewareMixin, LifespanMixin, Base): # Check if the route given is valid verify_route_validity(route) - if route in self.unevaluated_pages and environment.RELOAD_CONFIG.get: + # TODO: this was broken? + if route in self.unevaluated_pages and ( + environment.RELOAD_CONFIG.get in [True, False] + ): # when the app is reloaded(typically for app harness tests), we should maintain # the latest render function of a route.This applies typically to decorated pages # since they are only added when app._compile is called.