I need to modify an epic in order to call additional action after finishing deletion, the epic
looks like:
const deleteComponentEpic: Epic<
AppActions,
AppActions,
AppStore,
ComponentDetailsEpicsDependencies
> = (action$, _, { components }) =>
action$.pipe(
filterAction(deleteComponentAction.request),
exhaustMap(action =>
components.deleteComponent(action.payload.id).pipe(
map(() => deleteComponentAction.success()),
catchError((error: Error) => of(deleteComponentAction.failure(errorHandler(error)))),
),
),
);
I need to call following action when deletion went successfully, how to do it? Below is import of my action:
import { fetchCategoryComponentList } from '../../store';
question from:
https://stackoverflow.com/questions/65942805/sequence-execution-in-epic 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…