Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public starkUnhandledError$(): Observable {
return this.actions$.pipe(
ofType(StarkErrorHandlingActionTypes.UNHANDLED_ERROR),
map((action: StarkUnhandledError) => {
this.zone.run(() => {
this.toastNotificationService
.show({
id: uniqueId(),
type: StarkMessageType.ERROR,
key: action.error.toString(),
code: "Unhandled error - no code"
})
.subscribe();
});
})
);
}