-
0 votesanswersviews
Redux thunk in native native
我在createStor上得到错误,我不明白为什么 import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import thunk from "redux-thunk" import promise from "redux-promise-middleware&q... -
5 votesanswersviews
反应组件连接,redux状态改变......但没有更新组件?
我在使用 redux , react-redux 和 redux-thunk 时,在状态更改后让某些React组件重新渲染时遇到问题 . 我相信我的减速器是非变异的,并且我通过 react-redux 的 connect 订阅了 . 当我运行应用程序并查看浏览器控制台时,我看到组件的初始渲染(即初始状态为空状态),然后是状态更改(由 index.js 中的操作调度触发)....我希望使用新道具重新...