【问题标题】:Gatsby.js and redux-promise middlewareGatsby.js 和 redux-promise 中间件
【发布时间】:2018-11-14 10:12:39
【问题描述】:

我想知道是否有人知道 redux-promise(或 redux-thunk)是否可以在 gatsby.js 静态站点生成器中用作中间件。我知道 gatsby 在后台有 redux,所以我想知道在引入额外/其他 redux 包时是否存在任何冲突。

【问题讨论】:

标签: reactjs redux redux-thunk gatsby redux-promise


【解决方案1】:

Gatsby Repo 中有一个示例演示了如何使用 Gatsby 配置 Redux 存储:https://github.com/gatsbyjs/gatsby/tree/master/examples/using-redux

【讨论】:

  • 这个 repo 不使用 thunk,因此没有直接解决这个问题。
猜你喜欢
  • 1970-01-01
  • 2016-02-29
  • 1970-01-01
  • 1970-01-01
  • 2020-04-17
  • 2018-05-05
  • 2020-06-20
  • 2020-01-01
  • 2017-05-13
相关资源
最近更新 更多