Save time avoiding common mistakes using RxJS
Offered By: egghead.io
Course Description
Overview
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.
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.
Syllabus
- Convert RxJS Subjects to Observables
- Replace Observable.create with Observable creation helpers
- Use takeUntil instead of manually unsubscribing from Observables
- Convert an underlying source of data into an Observable
- Use the map operator instead of firing events on a Subject
- Use flattening operators instead of nested subscriptions
- Use switchMap to avoid leaks when flattening
- Replace zip with combineLatest when combining sources of data
- Move important side effects from do() to subscribe()
- Implement pause and resume feature correctly through RxJS
- Know when to extend the Observable class
- Make Observables hot only where necessary
Taught by
André Staltz
Related Courses
Front-End JavaScript Frameworks: AngularThe Hong Kong University of Science and Technology via Coursera Angular 8 Certification Training (basic to advanced level)
Udemy Angular Front To Back
Udemy Angular Crash Course for Busy Developers
Udemy Angular 2 Crash Course with TypeScript
Udemy