Kaffiend / electron-angular-ngrx

An Angular (6x) Electron seed featuring @angular/cli, @ngrx/platform, and Typescript. Complete with HMR workflow
MIT License
39 stars 10 forks source link

Initial HMR Load #1

Closed Kaffiend closed 6 years ago

Kaffiend commented 6 years ago

Due to the delay in the asynchronous tasks that proxy the hmr process with the CLI the initial load doesnt happen until you CTRL + R reload the initial time. After that HMR is hooked in and its business as usual.

There are no hooks in the CLI HMR ng serve -hmr process to subscribe to or listen for. Unlike the build process ng build the files are hosted from memory, so file events cant trigger the reload on the proxy.

I'm working on a clean solution that doesn't require moving away from the proxy solution.