瀏覽代碼

Fast refresh dev mode message (#1068)

Nikhil Rao 2 年之前
父節點
當前提交
0afea72eaf
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      pynecone/utils/exec.py

+ 2 - 1
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="")