How to get access of the state tree in effects? (@ngrx/effects 2.x)
问题 I am updating @ngrx/effects from 1.x to 2.x In 1.x I have access of state tree in effect: constructor(private updates$: StateUpdates<AppState>) {} @Effect() bar$ = this.updates$ .whenAction(Actions.FOO) .map(obj => obj.state.user.isCool) .distinctUntilChanged() .filter(x => x) .map(() => ({ type: Actions.BAR })); Now in 2.x, it only gives me action. Is there still a way to get access of the state tree? Or should I avoid using like this because it is not a good practice? constructor(private