ImmutableDataStore
An Observable Data Store Based on Immutable Data from ImmutableJS. The Change detection is super performant thanks to the immutable nature of the data. This store can easily be hooked to an Observer for Granular path observation. The included Observer is based on RxJS.
Install
npm install immutable-data-store
Usage
var Store = Store;var Observer = Observer; // initialize with some datavar store = a: b: c: 123; // the store emits change events when something actually changesstore // this will trigger a changeimmutableStore // initialize an Observervar observer = store; // observe returns a reactive streamvar pathObserver = observer; // you could use Other reactive method like throttle before subscriptionpathObserver // this will notify the pahObserverimmutableStore
Licence
MIT