Comments (2)
yup, this works as intended since it's the least amount of work without messing with angular internals like wrapping providers etc.
also see
"Hot Reloading in React or, an Ode to Accidental Complexity"
https://medium.com/@dan_abramov/hot-reloading-in-react-1140438583bf
if you want to persist state you can use the store object on destroy
from angular-hmr.
Thanks for the explanation. I already persisted my state in sessionStorage.
from angular-hmr.
Related Issues (20)
- The <app> is not removed upon hmr run HOT 3
- Async operations on HMR fails to update the view HOT 2
- seed points to an invalid repository HOT 4
- Back and forward cause route resolvers to get called one for each reload since full refresh
- HMR switches to default environment randomly HOT 1
- Webpack 4 / Angular 6 support HOT 6
- AngularJS 1 HOT 4
- Lazy Routes reload whole App HOT 22
- ngrx tutorial is not full HOT 1
- HMR on ng build --watch
- How to remove the browser console monitoring file? HOT 1
- Support for Angular 7? HOT 10
- ionic 4 support HOT 1
- State is lost on module reload HOT 2
- Cannot find name 'createInputTransfer'.'hmrModule'.
- commonjs dependencies HOT 2
- 3.x Breaks IE11 support HOT 1
- @angularclass/hmr breaks angular 12.x builds HOT 1
- Publish the v4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-hmr.