3 ms·
My recommendation: Remove zone.js, run angular in NoZone mode and use ngrx. Thats how we do it. Gets rid of all the headaches zone.js introduces, is way more pr
by sod 6y ago
My recommendation: Remove zone.js, run angular in NoZone mode and use ngrx. Thats how we do it. Gets rid of all the headaches zone.js introduces, is way more predictable, build is smaller and just updates the components where data changes. And you can see your state in the redux devtools.
- The_rationalist 6y ago1) handling local component state in a store seems terrible. And the Redux devtool will be flooded with commands that are from local and global state access making both indistinguishable and therefore undebuggable. 2) ngrx seems like overengineering^10 and you have more flexibility and much less cognitive load by using Mobx with Angular.
- The_rationalist 6y agoUp, I'd like to know your thought on ngrx vs mobx. For me there was no going back