Ver código fonte

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

Masen Furer 1 ano atrás
pai
commit
041abb39c8
1 arquivos alterados com 4 adições e 0 exclusões
  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."""