【问题标题】:where i can find tutorial for Epics in redux observale?我在哪里可以找到 redux observable 中的 Epics 教程?
【发布时间】:2017-08-27 17:50:48
【问题描述】:

我还没有找到一个详细解释史诗的教程。

   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 rxjs redux-observable redux-middleware


【解决方案1】:

Our documentation 包含 [我们希望是] 好的文档,假设您已经对 RxJS 有深入的了解。 Have you taken a look?

我注意到您还标记了 Angular。你不必使用angular-redux 来使用redux 和redux-observable,但如果你这样做了,它们也有some short docs about using it with redux-observable

如果您有一些未在 redux-observable 文档中得到解答的特定问题,请随时将它们作为 Stack Overflow 问题提出! :)

【讨论】:

    猜你喜欢
    • 2010-10-10
    • 1970-01-01
    • 2011-10-02
    • 2010-11-04
    • 1970-01-01
    • 2013-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多