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
feat(state$): state$ now only emits subsequent values if the state shallowly is different (e.g. prevValue !== nextValue). It still emits the current state immediately on subscribe regardless, as it did before, similar to BehaviorSubject. Closes#497
@@ -48,12 +54,6 @@ export class StateObservable extends Observable {
48
54
}
49
55
}
50
56
51
-
lift(operator){
52
-
constobservable=newStateObservable(this);
53
-
observable.operator=operator;
54
-
returnobservable;
55
-
}
56
-
57
57
getState(){
58
58
if(process.env.NODE_ENV!=='production'){
59
59
require('./utils/console').deprecate('calling store.getState() in your Epics is deprecated and will be removed. The second argument to your Epic is now a stream of state$ (a StateObservable), instead of the store. To imperatively get the current state use state$.value instead of getState(). Alternatively, since it\'s now a stream you can compose and react to state changes.\n\n function <T, R, S, D>(action$: ActionsObservable<T>, state$: StateObservable<S>, dependencies?: D): Observable<R>\n\nLearn more: https://redux-observable.js.org/MIGRATION.html');
0 commit comments