我在哪里可以找到 redux observable 中 Epics 的教程?
where i can find tutorial for Epics in redux observale?
我还没有找到详细解释 epics 的教程。
onst pingEpic = action$ =>
action$.filter(action => action.type === 'PING')
.delay(1000) // Asynchronously wait 1000ms then continue
.mapTo({ type: 'PONG' });
// later...
dispatch({ type: 'PING' });
Our documentation contains [what we hope is] good documentation, assuming you already have a solid understanding of RxJS. Have you taken a look?
我注意到你也标记了 Angular。您不必使用 angular-redux to use redux and redux-observable, but if you do they also have some short docs about using it with redux-observable.
如果您有 redux-observable 文档中没有回答的具体问题,请随时以 Stack Overflow 问题的形式提问! :)
我还没有找到详细解释 epics 的教程。
onst pingEpic = action$ =>
action$.filter(action => action.type === 'PING')
.delay(1000) // Asynchronously wait 1000ms then continue
.mapTo({ type: 'PONG' });
// later...
dispatch({ type: 'PING' });
Our documentation contains [what we hope is] good documentation, assuming you already have a solid understanding of RxJS. Have you taken a look?
我注意到你也标记了 Angular。您不必使用 angular-redux to use redux and redux-observable, but if you do they also have some short docs about using it with redux-observable.
如果您有 redux-observable 文档中没有回答的具体问题,请随时以 Stack Overflow 问题的形式提问! :)