NgRx (state management) - flowup/knowledge GitHub Wiki

NgRx is a state management library for Angular. Inspired by Redux (and leveraging RxJS), it's designed to help keep app state changes maintainable by applying the following core principles.

  • Data is stored in a single global immutable state object (store) acting as a single source of truth.
  • Queries (selectors) are separated from commands (actions) (CQS principle) in order to maintain a uni-directional dataflow.
  • New state is derived from old state in response to actions using pure functions (reducers).
  • A separate mechanism (effects) is defined for side-effects (e.g. network requests).

State management lifecycle

🛠️ Packages

💬 Talks