Skip to content
JS

Save time avoiding common mistakes using RxJS

Course on egghead by André Staltz

View on egghead (opens in a new tab)
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

Description from egghead

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

12 lessons
  1. 1Convert RxJS Subjects to Observables
  2. 2Replace Observable.create with Observable creation helpers
  3. 3Use takeUntil instead of manually unsubscribing from Observables
  4. 4Convert an underlying source of data into an Observable
  5. 5Use the map operator instead of firing events on a Subject
  6. 6Use flattening operators instead of nested subscriptions
  7. 7Use switchMap to avoid leaks when flattening
  8. 8Replace zip with combineLatest when combining sources of data
  9. 9Move important side effects from do() to subscribe()
  10. 10Implement pause and resume feature correctly through RxJS
  11. 11Know when to extend the Observable class
  12. 12Make Observables hot only where necessary

Similar functional programming courses

  1. Introduction to Reactive Programming

    egghead · André Staltz · 10 lessons · Oct 2015

    51 minSubscription
    egghead10Oct 2015
  2. RxJS Subjects and Multicasting Operators

    egghead · André Staltz · 13 lessons · 4.9 from 8 ratings · Oct 2016

    56 minSubscription
    egghead134.9 (8)Oct 2016
  3. State Monad in JavaScript

    egghead · Ian Hofmann-Hicks · 9 lessons · 5.0 from 4 ratings · Dec 2017

    46 minFree
    egghead95.0 (4)Dec 2017
  4. Functional JavaScript First Steps, v2

    Master.dev · Anjana Vakil · 24 lessons · Feb 2025

    3 h 27 minSubscription
    Master.dev24Feb 2025
  5. Hardcore Functional Programming in JavaScript, v2

    Master.dev · Brian Lonsdorf · 37 lessons · Mar 2020

    3 h 45 minSubscription
    Master.dev37Mar 2020
  6. The Hard Parts of Functional JavaScript

    Master.dev · Will Sentance · 37 lessons · Oct 2019

    4 h 54 minSubscription
    Master.dev37Oct 2019
  7. Functional Programming Patterns With RamdaJS!

    Educative · Yazeed Bzadough · 52 lessons · Apr 2026

    Beginner5 hFree
    Educative52Apr 2026
  8. Building Reactive Applications with RxJS

    Educative · Nasi Jofche · 28 lessons · Apr 2026

    Beginner6 hSubscription
    Educative28Apr 2026

A hyphen means the provider's catalogue does not state the value.

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.

    Compare