learn-rxjs
learn-rxjs copied to clipboard
Clear examples, explanations, and resources for RxJS
Fixes https://github.com/btroncone/learn-rxjs/issues/277
https://www.learnrxjs.io/learn-rxjs/operators/utility/finalize > Call a function when observable completes or errors https://rxjs.dev/api/operators/finalize > ... will call a specified function when the source terminates on complete or error. The specified function **will...
1. Letter `z` would never be generated. 1.1 This is easily fixable by adding `+1` inside multiplication with `Math.random() ×( ... + 1)` 2. If the same letter appears multiple...
I visualized this recipe to understand it better. I thought I might share it back to learnrxjs to improve other's understandings, too.
I read the learn-rxjs documentation on forkJoin, then read the main documentation at: https://rxjs.dev/api/index/function/forkJoin which states: """ If any given observable errors at some point, forkJoin will error as well...
I find [bindCallback](https://rxjs-dev.firebaseapp.com/api/index/function/bindCallback) and [bindNodeCallback](https://rxjs-dev.firebaseapp.com/api/index/function/bindNodeCallback) really useful. Especially the second is for me the easiest way to convert essential any node callback-style api to an observable api.
The third example in the [`concatMap` tutorial](https://www.learnrxjs.io/learn-rxjs/operators/transformation/concatmap) is using the now-deprecated `resultSelector` argument. I would be happy to do a PR with a change. I was thinking either 1) we...
While looking at the [`combineLatest`](https://www.learnrxjs.io/learn-rxjs/operators/combination/combinelatest) operator examples I noticed it uses a deprecated API. Instead it should accept an array of `Observable`s as mentioned in [combineLatest source code](https://www.learnrxjs.io/learn-rxjs/operators/combination/combinelatest)
Manual subscriptions are replaced with async pipe. This change also allows to use `ChangeDetectionStrategy.OnPush` for performance optimization.