1×
Become a member
to unlock all features
Autoplay

    Reusable multicasting with Subject factories

    rxjsRxJS
    ^5.0.0

    The way we use publish() (or multicast with an RxJS Subject) makes the shared Observable not reusable if the shared execution happens to complete or emit an error. In this lesson we will see how to use a simple Subject factory function in order to create a new Subject, one for each shared execution, whenever connect() is called.