RxJS: Calling publish with a Selector

Photo by Beatriz Pérez Moya on Unsplash

The and 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

When is called without a selector, it returns a particular type of observable: a .

--

--

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nicholas Jamieson

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