Angular · Middle · Question 14 of 75
Which operator should handle a "Pay" button so double clicks don't send duplicate requests?
- ✓Correct answer:
exhaustMap - 2
switchMap - 3
mergeMap
Explanation
exhaustMap ignores new source values while the current inner Observable is still running. switchMap would cancel the first payment request, mergeMap would send both.