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

Sharing Streams with Share

Sharing Streams with Share

4:00
A stream will run with each new subscription added to it. This lesson shows the benefits of using `share` so that the same stream can be shared across multiple subscriptions.
Watch this lesson now
Avatar
egghead.io

A stream will run with each new subscription added to it. This lesson shows the benefits of using share so that the same stream can be shared across multiple subscriptions.

Avatar
Chris

Can we use do() instead of subscribe() to clear the text to simplify things?

Avatar
Vincent De Snerck

'Do' definitely seems like a better solution for the problem. Double subscribe also seems to go against what was said in an earlier video where the entire working of the stream should be defined at declaration.

However it is an example of how and why you could share a stream.

In reply to Chris
Avatar
Jordan

first try

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