If exhaustMap is used, actions will be ignored until the pending backend request is fulfilled. Any pending request will either be fulfilled or rejected independent of actions dispatched whilst it’s pending.

If switchMap is used, each dispatched action will abort any pending request and initiate a new one. So, nothing will be fulfilled until actions cease to be dispatched — i.e. they stop clicking the button.

RxJS core team member; front-end developer; mentor; speaker; open-source contributor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store