From 0afea72eafd2fe67e0b1fb197708d2649a6edab6 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Wed, 24 May 2023 10:34:44 -0700 Subject: [PATCH] Fast refresh dev mode message (#1068) --- pynecone/utils/exec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pynecone/utils/exec.py b/pynecone/utils/exec.py index 8a5fafac8..17f3f7ce9 100644 --- a/pynecone/utils/exec.py +++ b/pynecone/utils/exec.py @@ -60,12 +60,13 @@ def run_process_and_launch_url( print(f"App running at: [bold green]{url}") if ( "Fast Refresh" in line + or "compiling..." in line and (datetime.now() - current_time).total_seconds() > 1 ): + current_time = datetime.now() print( f"[yellow][Updating App][/yellow] Applying changes and refreshing. Time: {current_time}" ) - current_time = datetime.now() elif loglevel == constants.LogLevel.DEBUG: print(line, end="")