DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.33k stars 736 forks source link

Fix firefox refreshing loop in debug mode #2214

Closed ealmloff closed 3 months ago

ealmloff commented 3 months ago

Firefox will trigger the websocket onclose event when reloading the page. We rely on the onclose event to detect when the server rebuild has restarted or the server was unexpectedly closed to reload the page. This can cause an infinite reload issue

Fixes https://github.com/DioxusLabs/dioxus/issues/2193