The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Multicasting shortcuts: publish() and variants

Multicasting shortcuts: publish() and variants

4:21
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.
Watch this lesson now
Avatar
egghead.io

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.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?