Skip to content

Commit

Permalink
[REF-2619] Re-init when the template is out of date
Browse files Browse the repository at this point in the history
This check was accidentally removed in #3011, so adding it back.

Fix #3120
  • Loading branch information
masenf committed Apr 19, 2024
1 parent 7b61e7e commit 7939c18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reflex/utils/prerequisites.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 7939c18

Please sign in to comment.