DEV Community

Discussion on: About switchMap and friends

Collapse
 
cogoo profile image
C.OG

Interesting regarding the risks of switchMap. I suppose if you are doing server mutations, you'll have to use exhaustMap instead.

Collapse
 
niklas_wortmann profile image
Jan-Niklas Wortmann

Well it depends. If you want to make sure that everything is really send to the server, I'd recommend concatMap. ExhaustMap will ignore notifications between each inner Observable which might lead to a lose of informations. I hope that helps, if not don't hesitate to ask me