Q. Which RxJS operator is used to switch to a new observable on emission?

  • (A) mergeMap
  • (B) switchMap
  • (C) concatMap
  • (D) map
πŸ’¬ Discuss
βœ… Correct Answer: (B) switchMap
Explanation: switchMap unsubscribes from previous observables and subscribes to the latest one.
Explanation by: Mr. Dubey
switchMap unsubscribes from previous observables and subscribes to the latest one.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate