问题描述
我正在尝试通过添加全局事件取消来保护史诗,使其免受继续的未决操作的影响,
但是受保护的史诗不再派遣任何行动。
export const protectEpic = (epic: Epic): Epic => (action$: ActionsObservable<AnyAction>,state$: StateObservable<RootState>,dependencies: any) =>
epic(action$,state$,dependencies).pipe(
takeuntil(of("USER_logoUT")),)
const epicsNeedAuth =[
epic1,epic2,epic3
]
export const rootEpic = combineEpics(
...epicsNeedAuth.map(protectEpic),loginEpic,)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)