Skip to content

Commit

Permalink
fix appearance broken by #3812
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor committed Nov 20, 2024
1 parent 229df1c commit 7306cdd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions reflex/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,12 +847,6 @@ def get_compilation_time() -> str:
(0, "AppWrap"): AppWrap.create()
}

if self.theme is not None:
# If a theme component was provided, wrap the app with it
app_wrappers[(20, "Theme")] = self.theme
# Fix #2992 by removing the top-level appearance prop
self.theme.appearance = None

for route in self.unevaluated_pages:
console.debug(f"Evaluating page: {route}")
self._compile_page(route)
Expand Down Expand Up @@ -1009,6 +1003,12 @@ def _submit_work(fn, *args, **kwargs):
)
progress.advance(task)

if self.theme is not None:
# If a theme component was provided, wrap the app with it
app_wrappers[(20, "Theme")] = self.theme
# Fix #2992 by removing the top-level appearance prop
self.theme.appearance = None

# Compile the app root.
compile_results.append(
compiler.compile_app(app_root),
Expand Down

0 comments on commit 7306cdd

Please sign in to comment.