I have an egui
app which can be compiled to WASM and deployed with Trunk
.
trunk serve
compiles the app, serves it on localhost
and recompiles it if it notices changes in the source tree.
However, whenever the app is recompiled, any browser running the app tries to reload it, and then hangs, displaying the spinning reload wheel forever.
The only way I have found of unblocking this, is to erase the site's data in the browser.
This not only happens when serving locally, but also when publishing the app to something like GitHub Pages.
What might be causing this blocking, and how might I get around it?