trackRequestStatus + catchError case #325
-
Imagine having setup where you have to silence emitted error to keep the emitter chain: const trackRequestStatus = createRequestsStatusOperator(myStore);
const myRequest$ = http.get('url').pipe(trackRequestStatus('my-request'));
// someEmitter$ chain should never break due to any error, so the errors are intercepted here
someEmitter$.pipe(switchMap(() => myRequest$.pipe(catchError(() => EMPTY))), untilDestroyed()).subscribe();
pending$ = myStore.pipe(selectIsRequestPending('my-request')); In this scenario my explicit whenever Not sure what to do, could use some help. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please provide a stackblitz example. |
Beta Was this translation helpful? Give feedback.
-
Well, look like another mystery bug. Fixed itself once the mentioned code block was rewrited from scratch. |
Beta Was this translation helpful? Give feedback.
Well, look like another mystery bug. Fixed itself once the mentioned code block was rewrited from scratch.