Skip to content

SwitchAll / SwitchLatest are broken #302

@jinroh

Description

@jinroh

switch operators do not seem to unsubscribe properly their inner subscriptions.

Here is a small repro code:

Observable.interval(1000)
  .switchLatest(function(i) {
    return Observable.interval(100).do(function(j) { console.log(i + "_" + j); });
  })
  .subscribe(function() {
  });

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