When using Granian the .web folder doesn't get updated when hot reloading
Describe the bug
When using granian and running the app with reflex run, the hot reload works (for the default app at least, for another app it doesn't work even to compile), but the .web folder isn't updated.
To Reproduce Reflex init, install granian[reload], edit some file.
Expected behavior Hot reload updates the .web folder and view
Screenshots Video of behavior: https://www.tella.tv/video/reflex-reloaded-h0uw
Specifics (please complete the following information):
- Python Version: 3.12.2
- Reflex Version: 0.6.1
- OS: pop_os
Additional context
Output when running it with --loglevel debug:
App running at: http://localhost:3000
Backend running at: http://0.0.0.0:8000
Debug:
Debug: β Starting...
[INFO] Started worker-1
[INFO] Started worker-1 runtime-1
Debug: β Ready in 1964ms
Debug: β Compiling / ...
Debug: β Compiled / in 1922ms (722 modules)
Debug: GET / 200 in 2299ms
[INFO] Changes detected, reloading workers..
[INFO] Modified: /home/myaccount/reflex/tmp2/tmp2/tmp2.py
[INFO] Stopping worker-1 runtime-1
[INFO] Stopping worker-1
[INFO] Spawning worker-1 with pid: 1287387
[INFO] Started worker-1
[INFO] Started worker-1 runtime-1
[19:04:32] Compiling: ββββββββββββββββββββββββββββββββββββββββ 100% 13/13 0:00:00
Debug: β Compiled in 759ms (722 modules)
Debug: GET / 200 in 44ms
Additional info:
- on MacOS, I don't reproduce that issue.
I can reproduce on Linux (Arch).
It seems that the modules are not being re-imported and instead are cached :/