Frontend Developer in Amsterdam specializing in healthcare applications. Expertise in Angular, Ionic, and NestJS. Background in East Asian Studies with a focus on linguistics and online communication.
For years, whenever I needed to handle an error in an RxJS stream with a side effect, I would catch the error and then rethrow it using catchError and throwError. Instead, I could have simply used tap:
Frontend Developer in Amsterdam specializing in healthcare applications. Expertise in Angular, Ionic, and NestJS. Background in East Asian Studies with a focus on linguistics and online communication.
I'll start.
For years, whenever I needed to handle an error in an RxJS stream with a side effect, I would catch the error and then rethrow it using catchError and throwError. Instead, I could have simply used tap:
Another RxJS one:
I often combine streams with
forkJoinorcombineLatestand want the output as an object with stream names as keys. Before, I did it like this:But, you can directly do: