remove duplicated logic

This commit is contained in:
Khaleel Al-Adhami 2024-10-23 15:10:13 -07:00
parent 44af40ca11
commit d6caf6a42b

View File

@ -946,21 +946,6 @@ class App(MiddlewareMixin, LifespanMixin, Base):
pages_results = []
for route, component in self.pages.items():
component._add_style_recursive(self.style, self.theme)
ExecutorSafeFunctions.COMPONENTS[route] = component
for route, page in self.unevaluated_pages.items():
if route in self.pages:
continue
ExecutorSafeFunctions.UNCOMPILED_PAGES[route] = page
ExecutorSafeFunctions.STATE = self.state
pages_results = []
with executor:
result_futures = []
pages_futures = []