This lesson is for PRO members.

Unlock this lesson NOW!
Already subscribed? sign in

Use switchMap as a safe default to flatten observables in RxJS

3:39 RxJS lesson by

In this lesson we look at the common strategies for creating and flattening higher order observables in RxJS. In particular, we give switchMap a careful review. It is an operator that works as an "asyncMap" and is capable of solving many of our asynchronous problems in JavaScript.

Get the Code Now
click to level up

egghead.io comment guidelines

Avatar
egghead.io

In this lesson we look at the common strategies for creating and flattening higher order observables in RxJS. In particular, we give switchMap a careful review. It is an operator that works as an "asyncMap" and is capable of solving many of our asynchronous problems in JavaScript.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?