RXJS Error Handling

PHOTO EMBED

Wed Jun 29 2022 17:22:25 GMT+0000 (Coordinated Universal Time)

Saved by @Polly

#Recover
// will display default value to listening page obs
http$.pipe().map().catch(err => of([default value])) OR fetch(offline data)
// putting this as first in pipe will short circuit remain methods and send to finalize


#Kill
// will stop the app
return throwError(err)

#cleanup release resouce 
// after ok or error
finalize(() => )
content_copyCOPY

provide alternative observable when source obs throws error

https://angular-university.io/lesson/rxjs-rxjs-error-handling-1