Javascript – Combine Latest – same observable returning different values
How to return different values from the same observable without multiple calls? I intend to subscribe just one time the firstObs$, but return the values and sumFromValues. combineLatest([ this.firstObs$, this.firstObs$.pipe( switchMap(someOperation => { return this.observableSumOperation(someOperation.first, someOperation.second) }) ), this.anotherObservable$, ])…