Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions reflex/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,16 @@ def get_compilation_time() -> str:
# Track imports found.
all_imports = {}

# Compile custom components.
(
custom_components_output,
custom_components_result,
custom_components_imports,
) = compiler.compile_components(dict.fromkeys(CUSTOM_COMPONENTS.values()))
compile_results.append((custom_components_output, custom_components_result))
all_imports.update(custom_components_imports)
progress.advance(task)

# This has to happen before compiling stateful components as that
# prevents recursive functions from reaching all components.
for component in self._pages.values():
Expand Down Expand Up @@ -1465,16 +1475,6 @@ def _submit_work_without_advancing(
)
progress.advance(task)

# Compile custom components.
(
custom_components_output,
custom_components_result,
custom_components_imports,
) = compiler.compile_components(dict.fromkeys(CUSTOM_COMPONENTS.values()))
compile_results.append((custom_components_output, custom_components_result))
all_imports.update(custom_components_imports)

progress.advance(task)
progress.stop()

if dry_run:
Expand Down
Loading