A state management solution implemented using RxJS to mimic Redux architecture.
Read my blog post State management in Angular with observable store services to learn more about how to use the
rxjs-observable-store package to manage state in front-end applications.
Lowest TypeScript support starts at version 3.5.
npm install rxjs-observable-store --save
Store's public properties:
Current state snapshot.
RxJS Observable of state.
Store's public methods:
setState(nextState: S): void
Set store's state to
patchState(value: any, ...path: (string|number|symbol)): void
Set store's state at
- When using TypeScript, errors are thrown for nonexisting
- Path autocompletion works as well (10 levels deep):