You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ENG-4713] Cache pages which add states when evaluating (#4788)
* cache order of imports that create BaseState subclasses
* Track which pages create State subclasses during evaluation
These need to be replayed on the backend to ensure state alignment.
* Clean up: use constants, remove unused code
Handle closing files with contextmanager
* Expose app.add_all_routes_endpoint for flexgen
* Include .web/backend directory in backend.zip when exporting
Copy file name to clipboardExpand all lines: reflex/utils/build.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ def _zip(
60
60
dirs_to_exclude: set[str] |None=None,
61
61
files_to_exclude: set[str] |None=None,
62
62
top_level_dirs_to_exclude: set[str] |None=None,
63
+
globs_to_include: list[str] |None=None,
63
64
) ->None:
64
65
"""Zip utility function.
65
66
@@ -72,6 +73,7 @@ def _zip(
72
73
dirs_to_exclude: The directories to exclude.
73
74
files_to_exclude: The files to exclude.
74
75
top_level_dirs_to_exclude: The top level directory names immediately under root_dir to exclude. Do not exclude folders by these names further in the sub-directories.
76
+
globs_to_include: Apply these globs from the root_dir and always include them in the zip.
0 commit comments