Save time avoiding common mistakes using RxJS
Course on egghead by André Staltz
- 52 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 12
- Lessons
- 4.9
- Rating out of 511 ratings on egghead
- May 2017
- Published22 May 2017
About this course
Note: RxJS imports have changed since the publication of this course. Operators now must be passed into .pipe to be applied to an observable. In this course we will learn to identify common mistakes with RxJS that usually make code harder to read and even introduce bugs. Most of these mistakes are related to Subject, subscribe, and subscriptions. We are going to see how to use only Observables and convenient operators made for solving those mistakes, such as fromEvent, takeUntil and switchMap. By the end of this course, you will have a more immediate intuition on what patterns are simple and safe in RxJS.
What it covers
- 1Convert RxJS Subjects to Observables
- 2Replace Observable.create with Observable creation helpers
- 3Use takeUntil instead of manually unsubscribing from Observables
- 4Convert an underlying source of data into an Observable
- 5Use the map operator instead of firing events on a Subject
- 6Use flattening operators instead of nested subscriptions
- 7Use switchMap to avoid leaks when flattening
- 8Replace zip with combineLatest when combining sources of data
- 9Move important side effects from do() to subscribe()
- 10Implement pause and resume feature correctly through RxJS
- 11Know when to extend the Observable class
- 12Make Observables hot only where necessary
Similar functional programming courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.