In the .pipe(
you can call any of these operators, most of the comments below are right out of the source code docs. Also see reactivex.io/documentation/operators and rxjs.dev/guide/operators.
filter
Filter items emitted by the source Observable by only emitting those that satisfy a specified predicate.
1 | // filter to check the something comes back and properties are set |
- https://www.learnrxjs.io/learn-rxjs/operators/filtering/filter
- https://www.concretepage.com/angular/angular-rxjs-filter
tap
Perform a side effect for every emission on the source Observable, but return an Observable that is identical to the source.
1 | // quick tap to display whats coming back |
distinctUntilChanged
Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item.
1 | // only fire down to the `subscribe` when `item.listingId` changes |
map
Applies a given project
function to each value emitted by the source Observable, and emits the resulting values as an Observable.
1 | // here only `item` is emmited as an observable |
startWith
1 | // the first emit will be an empty array [] |