加入中间件后类型报错了 (已解决)
来源:9-7 【中间件】使用redux-thunk中间价实现异步action

weixin_慕妹8014782
2024-03-09
老师您好,我学习到使用9-7中间件了。安装好redux-thunk,加入中间件后类型报错。
languageReducer.ts, languageActions.ts, recommendProductReducer.ts, 和 recommendProductReducer 与git上的源码一致。
一直卡在这里。 请老师指点一下, 十分感谢!
写回答
1回答
-
weixin_慕妹8014782
提问者
2024-03-10
解决了,是redux-thunk 版本问题。
后序章节老师也会用RTK的configureStore 来替代createStore。
012024-08-23
相似问题