Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing lazy imports #2187

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions reflex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
"Container",
"DataTable",
"DataEditor",
"DataEditorTheme",
"DatePicker",
"DateTimePicker",
"DebounceInput",
"Divider",
"Drawer",
Expand Down Expand Up @@ -227,14 +230,17 @@
_ALL_COMPONENTS += [to_snake_case(component) for component in _ALL_COMPONENTS]
_ALL_COMPONENTS += [
"components",
"color_mode_cond",
"desktop_only",
"mobile_only",
"tablet_only",
"mobile_and_tablet",
"tablet_and_desktop",
"selected_files",
"clear_selected_files",
"EditorButtonList",
"EditorOptions",
"NoSSRComponent",
]

_MAPPING = {
Expand Down
3 changes: 3 additions & 0 deletions reflex/utils/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ def setup_frontend(
root: The root path of the project.
disable_telemetry: Whether to disable the Next telemetry.
"""
# Create the assets dir if it doesn't exist.
path_ops.mkdir(constants.Dirs.APP_ASSETS)

# Copy asset files to public folder.
path_ops.cp(
src=str(root / constants.Dirs.APP_ASSETS),
Expand Down
Loading