RxJS: Calling publish with a Selector
publishReplay operators can be called in two ways: either with or without a selector function. Let’s look at the differences and at why you should almost always pass a selector.
Without a selector
publish is called without a selector, it returns a particular type of observable: a