JorgenVatle/meteor-vite

Page reload on server code changes

Closed this issue · 1 comments

If I change the code that is only used on server (and lives in server folder), the app page is reloaded anyway. It takes quite a long time for the big project with many client-side components.

Native Meteor recognize such cases and doesn't reload the client.

capture.mp4

From what I can gather, the base Vite client module is responsible for triggering those reloads. Whenever the WebSockets connection to Vite ends abruptly, Vite force-reloads the page.

It is rather annoying indeed. 😅

Meteor appears to also shut down during hot reload before we have time to gracefully close client connections.