Software Architect / Team Lead
- Kansas City, MO
-
18:01
(UTC -06:00) - http://www.mattburkedev.com
- @mattburkedev
- @matt@social.mattburkedev.com
- in/akatakritos
Highlights
- Pro
Pinned Loading
-
-
-
rxjs debug operator
rxjs debug operator 1export function debug<T>(label: string) {
2return tap<T>(
3next => console.log(`[${label}]`, next),
4err => console.error(`[${label} -- ERR]`, err),
5() => console.log(`[${label}]`, 'complete')
-
-
rxjs error handling
rxjs error handling 1/**
2* rxjs operator to convert a observable to an obserable of Results
3*/
4export function wrapResult<T>(): UnaryFunction<Observable<T>, Observable<Result<T, Error>>> {
5return pipe(
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.