If you're just getting started, this link might be helpful: understanding the purpose of HMR.
When it comes to managing and designing large projects, I'm still in the early stages and haven't grown a wise beard yet. So, I'm seeking advice from experienced individuals like yourself.
Exploring the Seed
I've been exploring the Angular 2 seed project and wondering if implementing HMR is a feasible option for developing a large application effectively.
These are just my initial thoughts, and I'm eager to have a discussion with others to make an informed decision. Learning from each other's experiences is crucial :-)
Data Structure Discussion
Considering the example below:
(component code snippet)
Utilizing appState allows components to be dynamically reloaded and data injected. However, should we rely on objects like localState
within components? Is this practice manageable in large applications?
On the other hand, utilizing localStorage
solely for tracking data required by HMR seems like a straightforward approach.
Data Storage and @ngrx/store
In terms of storage, I also utilize @ngrx/store as a Redux implementation where the state serves as the application's localStorage
. While this setup sounds promising, integrating @ngrx/store with HMR poses some challenges given that existing connectors may be outdated.
Aligning Angular services with reducers and finding ways to update HMR's state presents further considerations.
While @ngrx/store and HMR are recognized technologies within the Angular community, resources on combining them are limited. Therefore, I seek insights based on practical experiences and potential pitfalls that may not be immediately evident.
Final Thoughts
- Is HMR deployment-ready for production environments?
- Is storing substantial information within @ngrx/store advisable?
- A crucial question: How well do these technologies integrate?
These inquiries echo similar discussions found at this link.