retain old behavior
This commit is contained in:
parent
467308e7c2
commit
84057093ac
@ -12,6 +12,7 @@ import inspect
|
|||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
import os
|
||||||
import platform
|
import platform
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
@ -505,8 +506,8 @@ class App(MiddlewareMixin, LifespanMixin, Base):
|
|||||||
verify_route_validity(route)
|
verify_route_validity(route)
|
||||||
|
|
||||||
# TODO: this was broken?
|
# TODO: this was broken?
|
||||||
if route in self.unevaluated_pages and (
|
if route in self.unevaluated_pages and os.getenv(
|
||||||
environment.RELOAD_CONFIG.get in [True, False]
|
environment.RELOAD_CONFIG.name
|
||||||
):
|
):
|
||||||
# when the app is reloaded(typically for app harness tests), we should maintain
|
# 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
|
# the latest render function of a route.This applies typically to decorated pages
|
||||||
|
Loading…
Reference in New Issue
Block a user