From 70f30a35d22176f7a44d17368b4bf248e5d3d3ec Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Tue, 11 Feb 2025 17:43:56 -0800 Subject: [PATCH 1/2] invert logic of default hot reload exclusion --- reflex/utils/exec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/utils/exec.py b/reflex/utils/exec.py index 3e729cbf89..29d30432e9 100644 --- a/reflex/utils/exec.py +++ b/reflex/utils/exec.py @@ -278,7 +278,7 @@ def is_excluded_by_default(path: Path) -> bool: if path.name.startswith("__"): # ignore things like __pycache__ return True - return path.name not in (".gitignore", "uploaded_files") + return path.name in (".gitignore", "uploaded_files") reload_paths = ( tuple( From 149b81ceef68195e524abec3acabdeeed44c1abd Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Tue, 11 Feb 2025 17:46:06 -0800 Subject: [PATCH 2/2] console debug reload paths --- reflex/utils/exec.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reflex/utils/exec.py b/reflex/utils/exec.py index 29d30432e9..b16aaea1cc 100644 --- a/reflex/utils/exec.py +++ b/reflex/utils/exec.py @@ -297,6 +297,8 @@ def is_excluded_by_default(path: Path) -> bool: if all(not path.samefile(exclude) for exclude in exclude_dirs) ) + console.debug(f"Reload paths: {list(map(str, reload_paths))}") + return reload_paths