Answer the question
In order to leave comments, you need to log in
What is the correct way to throw an rxjs exception?
this.markAsReadClick
.pipe(
concatMap(() =>
this.documentsRepository.selectedDocumentsReestrIds$.pipe(
take(1),
tap((ids: number[]) => {
if (!ids.length) throw throwError('Error');
}),
concatMap((ids: number[]) =>
(!ids.length) throw throwError('Error');
this.markAsReadClick
. How to avoid it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question