I really like the Observable caching strategy you mentioned.
Dave Bosley
22

Good question, I think one obvious answer to the particular example mentioned in the article can be this:

As you see, I just reassign the countries property to the same observable, so it will make a new single request and cache the result whenever a subscriber appears.

Though I am almost sure this is not the best strategy. I now want to look it up in Rx.js docs

Show your support

Clapping shows how much you appreciated Armen Vardanyan’s story.