Skip to content

Instantly share code, notes, and snippets.

@ajcrites
Created September 20, 2018 16:29
Show Gist options
  • Save ajcrites/8dbcdf67ee969d31ccc9e4e5680c7f19 to your computer and use it in GitHub Desktop.
Save ajcrites/8dbcdf67ee969d31ccc9e4e5680c7f19 to your computer and use it in GitHub Desktop.
// Spot the semantic error
export const stopEpic = action => action.pipe(
ofType(STOP),
switchMapTo(stop().pipe(
mapTo(new StopAction()),
catchError(() => of(new StopFailureAction())),
)),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment