rxdeep
By Eugene Ghanizadeh Khoub • Added July 18, 2020 •
Fast and precise reactive state management, in a flexible and unopinionated manner. Make changes to any part of your state tree, track changes, subscribe to specific node/sub-tree, track changes by entity keys, verify changes, etc.
npm i rxdeep
import { State } from 'rxdeep';
const state = new State([ { name: 'John' }, { name: 'Jack' }, { name: 'Jill' } ]);
state.sub(1).sub('name').subscribe(console.log); // --> subscribes to property `name` of object at index 1 of the array
state.value = [ { name: 'Julia' }, ...state.value ]; // --> logs `John`, since `John` is index 1 now
state.sub(1).value = { name: 'Josef' }; // --> logs `Josef`
state.sub(1).sub('name').value = 'Jafet'; // --> logs `Jafet`