Store
Store is observable object that holds all application state
Store can be accessed in one of 2 ways:
From Actions
Injected directly into component via DI
Also you can avoid having async pipe by subscribing to state change. But then you will be responsible for subscription management and view update when OnPush
change detection is applied. Hence it is recommended to leave this for Angular.
TIP: try to avoid .toJS() calls because it is not the best practice and is might be costly performance vise.
Last updated