Exercise
The goal of this exercise is to use the shorthand publish()
operator in place of the multicast()
operator.
- Open exercise on codesandbox. I've already imported the necessary rxjs functions and classes for you, and scaffolded out the bulk the of code. After all, the goal here is for you to practice and retain knowledge, not to improve your typing skills. 😁
- Use the
publish()
andrefCount()
operators to create a multicasted Observable that is reference counted.