0

Why would you use switchMap over mergeMap in Angular services?

author
subina kallyani
hard
0
345

Answer

switchMap cancels previous subscriptions, which is crucial for APIs like search autocomplete, avoiding race conditions.

Click to Reveal Answer

Tap anywhere to see the solution

Revealed

Comments0