Nicholas Jamieson
1 min readFeb 8, 2018

--

No. One of the motivations for moving to pipeable operators was to get away from the can-be-imported-anywhere problem. Pipeable operators are just functions and they require explicit imports. However, with tree-shaking bundlers, the imports can be combined, so it’s not that onerous. E.g.:

import { filter, map, switchMap } from "rxjs/operators";

The operators in rxjs/operators are the lettable/pipeable operators. Those in rxjs/operator are the “patch” operators that need be called with a context. See Using prototype patching or Using call in the article. Or see the RxJS documentation.

--

--

Nicholas Jamieson
Nicholas Jamieson

Written by Nicholas Jamieson

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

Responses (1)