我還沒有找到解釋關於史詩的詳細說明的單個教程。在哪裏我可以找到教程在雷克斯觀測谷歌史詩?
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 –