Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Cancel in flight / ongoing network request - ngrx effects
getTabData$: Observable<Action> = this.actions$.pipe(
switchMap(action => {
const tabType = action.payload;
return this.http
map((response: any) => {
return new FetchTabDataSuccess(;
catchError(error => of(new FetchTabDataFailure(error)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment