ericclemmons / polydev

Faster, route-centric development for Node.js apps with built-in Hot Module Replacement.
282 stars 6 forks source link

SSE for reload #1

Open ericclemmons opened 5 years ago

ericclemmons commented 5 years ago

When the HMR updates, it should send an event to reload the browser.

Or, at least, when the server restarts it should.

ericclemmons commented 5 years ago

The HMR event seems to be slow enough that there's this weird race-condition: the 2nd save needs to happen in < 500ms, but also not too fast, or the 1st HMR won't be complete.

Need to see if the watcher within that project should be updated, or if there's a sync process preventing it from firing...