Q. Which RxJS operator is used to cancel previous HTTP calls?

  • (A) mergeMap
  • (B) concatMap
  • (C) switchMap
  • (D) map
πŸ’¬ Discuss
βœ… Correct Answer: (C) switchMap
Explanation: switchMap cancels the previous observable when a new one is emitted.
Explanation by: Kartik Sharma
switchMap cancels the previous observable when a new one is emitted.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
40
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Kartik Sharma
Publisher
πŸ“ˆ
89%
Success Rate