[REF-3149] Bring back py3.12 hot reload warning (#3537)

Warning for issue #3536

Co-authored-by: Lendemor <thomas.brandeho@gmail.com>
This commit is contained in:
Masen Furer 2024-06-24 07:24:42 -07:00 committed by GitHub
parent 046dbdef63
commit b2b0da036d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -955,9 +955,10 @@ def needs_reinit(frontend: bool = True) -> bool:
console.warn(
"""Windows Subsystem for Linux (WSL) is recommended for improving initial install times."""
)
if sys.version_info >= (3, 12) and uvi_ver != "0.24.0.post1":
if sys.version_info >= (3, 12):
console.warn(
f"""On Python 3.12, `uvicorn==0.24.0.post1` is recommended for improved hot reload times. Found {uvi_ver} instead."""
"Python 3.12 on Windows has known issues with hot reload (reflex-dev/reflex#3536). "
"Python 3.11 is recommended with this release of Reflex."
)
if sys.version_info < (3, 12) and uvi_ver != "0.20.0":