I have one subject and observable, I want to combine them and emit the observable value and do some stuff with it after subject got new value. This code below works good but I don't want to have subscribe in subscribe
this.subject.subscribe(() => {
this.observable.subscribe(b => {
this.someStuffToDo(b);
});
So the workflow is: next is invoked on subject -> observable is emitting value -> do some stuff with this value. I already tried combineLatest and zip, but it stops on the first emit of subject, or the order is wrong.
combineLatest
sounds like what you need. It doesn't stop after the first emission but emits when all source Observables emit at least once then on every emission from any of the source Observables. – martin