Angular · Middle · Question 14 of 75

Which operator should handle a "Pay" button so double clicks don't send duplicate requests?

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.

Further reading

Problem with a question

Angular · Middle · question 14

Test yourself

Take the Angular · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz