From 84057093ac09a3947a1bee2874c91a91b50a8a74 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Mon, 28 Oct 2024 22:41:50 +0100 Subject: [PATCH] retain old behavior --- reflex/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reflex/app.py b/reflex/app.py index 241064529..c4bbf8bf7 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -12,6 +12,7 @@ import inspect import io import json import multiprocessing +import os import platform import sys import traceback @@ -505,8 +506,8 @@ class App(MiddlewareMixin, LifespanMixin, Base): verify_route_validity(route) # TODO: this was broken? - if route in self.unevaluated_pages and ( - environment.RELOAD_CONFIG.get in [True, False] + if route in self.unevaluated_pages and os.getenv( + environment.RELOAD_CONFIG.name ): # 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