Skip to content
Merged
Changes from all commits
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
8 changes: 2 additions & 6 deletions reflex/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,7 @@ def _get_shared_components_recursive(
# When the component is referenced by more than one page, render it
# to be included in the STATEFUL_COMPONENTS module.
# Skip this step in dev mode, thereby avoiding potential hot reload errors for larger apps
if (
isinstance(component, StatefulComponent)
and component.references > 1
and is_prod_mode()
):
if isinstance(component, StatefulComponent) and component.references > 1:
# Reset this flag to render the actual component.
component.rendered_as_shared = False

Expand Down Expand Up @@ -620,7 +616,7 @@ def compile_stateful_components(
progress_function()
page_components.append(page_component)

code = _compile_stateful_components(page_components)
code = _compile_stateful_components(page_components) if is_prod_mode() else ""
return output_path, code, page_components


Expand Down
Loading