簡單講就是NgRx = Redux + RxJS + Angular
但是 Redux 又是什麼
你不應該使用 NgRx
到底要不要用 NgrX 基本上有一個所謂的 SHARI 準則:
Shared: state that is accessed by many components and services.
Hydrated: state that is persisted and rehydrated from external storage.
Available: state that needs to be available when re-entering routes.
Retrieved: state that must be retrieved with a side-effect.
Impacted: state that is impacted by actions from other sources.