Fast Refresh automatically appears every ~7 seconds
Closed this issue · 2 comments
s-kruschel commented
Hey @masenf,
thanks for your fast response.
The DeprecationWarning issue (#1) indeed is fixed. Thanks for that!
However, the hot reload is still an issue.
Here the reflex run --loglevel debug
output:
App running at: http://localhost:3000
Backend running at: http://0.0.0.0:8000
Debug:
Debug: warning package.json: No license field
Debug: ✓ Ready in 2.7s
[07:47:04] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
Debug: ○ Compiling / ...
Debug: ✓ Compiled / in 3.7s (649 modules)
[07:47:14] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
Debug: ✓ Compiled in 2.3s (649 modules)
Debug: ⚠ Fast Refresh had to perform a full reload when ./pages/index.js changed. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
[07:47:26] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
Debug: ⚠ Fast Refresh had to perform a full reload when ./pages/index.js changed. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
Debug: ✓ Compiled in 4.5s (649 modules)
To reproduce the issue:
- In a brand-new venv I run pip install reflex openai reflex-audio-capture python-dotenv
- I run
reflex init
and use the base template. - I replace the reflex_audio_demo/reflex_audio_demo.py script which contains the base template stuff with the code from your audio_capture_demo.py.
- I add load_dotenv() directly after the imports to load my OPENAI_API_KEY from the .env file.
- I run
reflex run --loglevel debug
and open the localhost:3000 - I just have to wait some seconds until the issue appears.
Any idea how to fix that?
s-kruschel commented
Maybe to add:
It seems like I don't even have to open the localhost:3000 to permanently see:
App running at: http://localhost:3000
Backend running at: http://0.0.0.0:8000
Debug:
Debug: warning package.json: No license field
Debug: ✓ Ready in 2.8s
[07:58:39] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
[07:58:44] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
[07:59:07] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
[07:59:32] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
[07:59:42] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
s-kruschel commented
Hm... looking further into the issue it is not as reliable to reproduce as I thought.
I close the issue for now, until I better understand when re-compiling is happening and when it is not.