Search code examples
angulartypescriptionic2rxjs5subscribe

RXJS 5 .subscribe() without arguments


So a quick question. I've been using RxJS 5 for a few months now, and I've run into a bit of behavior that I don't really understand, as I haven't been able to look it up anywhere.

I'm in a situation where subscribing to an observable chain with simply .subscribe(); doesn't trigger the observable.

However, if I add an onNext callback (empty or not), the observable triggers, and the chain processes: .subscribe(() => {});

Can anyone explain why this behavior happens?


Solution

  • Thanks to Damian Hercun for informing that this was a now-fixed bug in RxJS 5.4.2.

    Info:

    https://github.com/ReactiveX/rxjs/pull/1935

    https://github.com/ReactiveX/rxjs/issues/1921