DEV Community

Discussion on: NGRX Selector & async confusion

Collapse
 
bttb profile image
bttb

You shouldn't use switchMap in the last example. Better is concatMap. Otherwise a 2nd action would cancel the 1st request, if it occured before the server responded. This might be a problem, if you have a loading indicator which is based on a number of active requests.