我还没有找到解释关于史诗的详细说明的单个教程。在哪里我可以找到教程在雷克斯观测谷歌史诗?
onst pingEpic = action$ =>
action$.filter(action => action.type === 'PING')
.delay(1000) // Asynchronously wait 1000ms then continue
.mapTo({ type: 'PONG' });
// later...
dispatch({ type: 'PING' });
你使用框架?对于angular-redux,你可以在这里找到一个例子:https://github.com/angular-redux/store/blob/master/articles/epics.md和ngrx(效果)在这里:https://github.com /ngrx/platform/blob/master/docs/effects/README.md –