Multicasting shortcuts: publish() and variants

InstructorAndré Staltz

Share this video with your friends

Send Tweet

Because using multicast with a new Subject is such a common pattern, there is a shortcut in RxJS for this: the publish() operator. This lesson introduces publish() and its variants publishReplay(), publishBehavior(), publishLast(), share(), and shows how they simplify the creation of multicasted Observables.

felikf
~ 3 years ago

What a great overview of share operators! Thanks