const someEpic = (
action$,
) => (
action$
.pipe(
ofType(FETCH_DATA),
switchMap(() => (
ajax('/data')
.pipe(
switchMap((
response,
) => (
of(
doSomething(),
fetchSucceeded(response),
)
)),
)
)
)
)