Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 288 Bytes

File metadata and controls

13 lines (9 loc) · 288 Bytes

Consuming state in non-React setting

To read the current state of the store use .get() method or getState() alias method.

stateContainer.get();

To listen for latest state changes use .state$ observable.

stateContainer.state$.subscribe(state => { ... });