You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very simple test fullstack app that works just fine when it's a standalone project. However if I make it a part of a workspace, the hot-reloading functionality no longer works. Basically everything looks to be fine, but the hot_reload websocket gets immediately closed. The other disconnect websocket stays open. When the project is standalone, the hot_reload websocket stays open.
I can confirm that hot reloading is failing in a workspace. This is an obstacle to adding a Dioxus UI to a larger, existing project containing multiple crates.
Problem
I have a very simple test fullstack app that works just fine when it's a standalone project. However if I make it a part of a workspace, the hot-reloading functionality no longer works. Basically everything looks to be fine, but the
hot_reload
websocket gets immediately closed. The otherdisconnect
websocket stays open. When the project is standalone, the hot_reload websocket stays open.Steps To Reproduce
Reproducible repo at https://github.com/ochrons/dioxus-reload-bug
Steps to reproduce the behavior:
launch browser at
127.0.0.1:8080
make a change in
main.rs
see how it changes in the browser
If you check browser web dev tools, you can see that the
hot_reload
socket is in pending state and messages have been received.then
launch browser at
127.0.0.1:8080
make a change in
main.rs
nothing happens in the browser
If you check browser web dev tools, you can see that the
hot_reload
socket is not in pending state but has been closed.Expected behavior
Both cases should work identically
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
The text was updated successfully, but these errors were encountered: