Which RxJS operator is used to cancel previous HTTP calls?

  1. mergeMap
  2. concatMap
  3. switchMap
  4. map
Correct answer switchMap

Explanation

switchMap cancels the previous observable when a new one is emitted.

Update: Admin added a tag on this question

Topics

By Admin · · 27 views