Extend Subscriber to Override `_next` in RxJS

Share this video with your friends

Send Tweet

The Subscriber class exposes a _next method which you can override to handle how the destination's next function will be called. This allows you to create your own variations of the Subscriber class to intercept what happens between the observable and the destination subscriber.

Alexander
Alexander
~ 2 years ago

where did destination property come from? is it something built in to javascript?

Lucas Minter
Lucas Minter
~ 2 years ago

where did destination property come from? is it something built in to javascript?

Here is an article I found on RxJs Observables. destination looks like it's an RxJS feature. https://medium.com/swlh/observables-angular-7e11ad612072