Ver Fonte

invert logic of default hot reload exclusion (#4807)

* invert logic of default hot reload exclusion

* console debug reload paths
Khaleel Al-Adhami há 3 meses atrás
pai
commit
cb2e7df96a
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      reflex/utils/exec.py

+ 3 - 1
reflex/utils/exec.py

@@ -278,7 +278,7 @@ def get_reload_paths() -> Sequence[Path]:
             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(
@@ -297,6 +297,8 @@ def get_reload_paths() -> Sequence[Path]:
             if all(not path.samefile(exclude) for exclude in exclude_dirs)
         )
 
+    console.debug(f"Reload paths: {list(map(str, reload_paths))}")
+
     return reload_paths