You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// create a stateconststate=createState({count: 0,timer: 100});// listen to state changesstate.count.subscribe(c=>console.log('C:',c));// > C:0// write to the statestate.count.next(1);// > C:1// reset the statestate.next({timer: 2,count: 2})// > C:2state.count+=1;// > C:3state.count.next(3);// ignored: same value// read current values:console.log(state.timer+state.count);// > 2 + 3 = 5
OR to be able to add rxjs-autorun functions, e.g.:
It'd be good to have ability to extend some levels of proxify, e.g.:
Rx Simple State example
OR to be able to add rxjs-autorun functions, e.g.:
The text was updated successfully, but these errors were encountered: