Bug Report
Current Behavior
Currently if you nest a concatMap inside of a concatMap, and the source completes, the inner most concatMap will not forward along values.
Reproduction
import { timer, from } from 'rxjs';
import { concatMap, tap } from 'rxjs/operators';
function wait(ms){
return new Promise(res => {
setTimeout(() => res('poop'), ms);
})
}
timer(10).pipe(
concatMap(() => from(wait(20)).pipe(
concatMap(() => {
console.log('here');
return from(wait(20)).pipe(
tap(x => console.log('>', x))
);
})
))
)
.subscribe(x => console.log('>', x));
Expected behavior
It should work like it did in 6.2
Environment
- Runtime: all
- RxJS version: 6.3.0
Possible Solution
None