You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using HMR with the latest rc of the cli.
Refresh and refill of forms works great, however the app state (saved as variables in services) is lost with each refresh.
It seems that all services are newly created with each reload.
Describe the solution you'd like
The app doesn't loose the current state of the app at an HMR update
The text was updated successfully, but these errors were encountered:
This issue is pretty similar and has the same root causes and resolutions of angular/angular#39367
Currently for every change the application needs to be destroyed and re-bootstrapped and therefore any data which is stored in a service and not persisted in a browser storage (global object, localStorage, etc...) will be lost.
Ideally there would be a component/service unload/load mechanism, which HMR can leveraged in this case.
Since both this and the previous mentioned requests are rather similar and likely need the same implementation and API changes. I suggest we continue tracking this in angular/angular#39367. Feel free to chime in over there and give your input.
🚀 Feature request
Command (mark with an
x
)Description
I am using HMR with the latest rc of the cli.
Refresh and refill of forms works great, however the app state (saved as variables in services) is lost with each refresh.
It seems that all services are newly created with each reload.
Describe the solution you'd like
The app doesn't loose the current state of the app at an HMR update
The text was updated successfully, but these errors were encountered: