Open ywarezk opened 4 years ago
https://github.com/DimaFr/angular-advanced-ex1/blob/046887da1992d0d186d8eff5f36747ee8dc9f4bf/projects/throttling/src/app/services/tasks.service.ts#L19
It's very good that you are addressing the error use case. In this case you can drop the catchError cause you are basically passing the error forward which is the same result as not placing this operator.
https://github.com/DimaFr/angular-advanced-ex1/blob/046887da1992d0d186d8eff5f36747ee8dc9f4bf/projects/throttling/src/app/services/tasks.service.ts#L19
It's very good that you are addressing the error use case. In this case you can drop the catchError cause you are basically passing the error forward which is the same result as not placing this operator.