Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the web renderer freezing when the hot reload connection fails #1925

Merged

Conversation

ealmloff
Copy link
Member

The web renderer will currently freeze if the hot-reload web socket does not connect because one side of the channel is dropped which causes the future to resolve immediately. That future is awaited in a loop which causes the page to freeze. This PR fixes that issue by not resolving the future when the other side of the channel is dropped

Fixes #1924

@ealmloff ealmloff added bug Something isn't working web relating to the web renderer for dioxus hot-reload Related to the hot reload crate labels Feb 11, 2024
@jkelleyrtp jkelleyrtp merged commit 8e007cc into DioxusLabs:master Feb 13, 2024
9 checks passed
@ealmloff ealmloff deleted the fix-panic-drop-hot-reload-socket branch February 13, 2024 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hot-reload Related to the hot reload crate web relating to the web renderer for dioxus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dioxus_web stops responding when using wasm_bindgen 0.2.91
2 participants