I have two BehaviorSubjects $A and $B with default values. Both of them are getting updated with values at different times using .next(value). Much later in the code I am trying to pull the values like so
Observable.combineLatest($A, $B)
.take(1)
.map(([$a, $b]) => {
return {
// stuff
}
})
.subscribe(fn)
The behavior I'm seeing is odd. I was expecting the Observable to wait for either subject to emit a value and then give me one emitted value that I could pass to the subscribe function. But it only emits values with $B emits a new value. It will take the new value from $A when $B emits, but it won't do the reverse. What am I doing wrong?