Skip to content

nested concatMaps no longer next values to destination in 6.3.0 #4071

@benlesh

Description

@benlesh

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

Metadata

Metadata

Assignees

Labels

bugConfirmed bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions