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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.