In dev mode, refresh the page when the server starts #234
Labels
A-Run
Related to the bevy run command
A-Web
Building or running Bevy apps targeting the browser
C-Feature
Make something new possible
D-Modest
A "normal" level of difficulty; suitable for simple features or challenging fixes
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
This is the first step towards supporting some sort of
watch
feature (even if it is through external tools likebacon
).It might also aid with #189.
For this first iteration, if a browser window is already open with the app, it should refresh if we use
bevy run web
again and the new server booted up. That way, we ensure that we show the latest state and the user could just leave the browser open on the second screen and doesn't have to refresh manually to see the changes.Implementation-wise, we could probably use websockets to send the refresh event from server to client.
trunk
supports this feature since v0.14, so we can probably implement it in a similar way.The text was updated successfully, but these errors were encountered: