RxJS: What’s Changed with shareReplay?

Nicholas Jamieson
5 min readFeb 14, 2019
Photo by Namroud Gorguis on Unsplash

In RxJS version 6.4.0, a change was made to the shareReplay operator. Let’s look at why the operator needed to be changed, what was changed and how the change can be used to avoid surprises — and bugs.

If you’re only interested in the change, skip to the TL;DR at the bottom of the article.

The operator’s history

--

--

Nicholas Jamieson

RxJS core team member; front-end developer; mentor; speaker; open-source contributor