Subscription after switchMap does not work
I have created a Confirmation dialog that returns true or false, based on the user’s choice. This is the function that opens the dialog and handles the responses: public action(id: number): void { this.dialogService.openDialog(ConfirmationComponent).afterClosed() .pipe( switchMap( (result: boolean) => { if (result) { return this.service.doSomething(id); } else { return of(‘cancelled’); } } ) ).subscribe({ next:… Read More Subscription after switchMap does not work