Procházet zdrojové kódy

[REF-2619] Re-init when the template is out of date (#3121)

Masen Furer před 1 rokem
rodič
revize
041abb39c8
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      reflex/utils/prerequisites.py

+ 4 - 0
reflex/utils/prerequisites.py

@@ -893,6 +893,10 @@ def needs_reinit(frontend: bool = True) -> bool:
     if not os.path.exists(constants.Dirs.WEB):
         return True
 
+    # If the template is out of date, then we need to re-init
+    if not is_latest_template():
+        return True
+
     if constants.IS_WINDOWS:
         console.warn(
             """Windows Subsystem for Linux (WSL) is recommended for improving initial install times."""