Skip to content

zip does not do anything if passed all iterators #4304

Closed
@benlesh

Description

@benlesh

Ages ago, I had this amazing idea to give zip special handling for iterables, such that, as it was "zipping" it would attempt to only next out values from the iterable as needed.

Unfortunately, this has introduced a lot of complexity in that operator as well as a bug...

zip('abc', 'def').subscribe(x => console.log); // this does nothing.

It should yield:

['a', 'd']
['b', 'e']
['c', 'f']

But it does nothing.

While it seemed like a clever idea at the time, I now think it deviates from the "push only" nature of RxJS, and this behavior should be removed in the upcoming v7.

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