NGRX effects - mapping actions to make sequential service calls and updating store
问题 I want to pass the same action 2 successive times with different entities, for example i want to add 2 entities, entity 1; entity 2; this.store.dispatch(new Add(entity1)); this.store.dispatch(new Add(entity2)); the problem that i encountered is that i got the result of only one action (the entity 2 one) and this is the effect of my action. I want to wait for the result of the first action before passing the second action. @effect() add$ = this.actions$ .ofType<Add>(ADD) .pipe(switchMap(a =>