【发布时间】:2019-03-27 12:28:06
【问题描述】:
React Native 调试器应用版本:v0.8.1
React Native 版本:0.57.3
我收到了这个错误
It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function
在我从 0.55 更新之前它可以工作。
这就是我创建商店的方式。
import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import reducers from '../reducers';
const store = createStore(
reducers,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
compose(applyMiddleware(thunk)),
);
export default store;
当我使用 Chrome 进行调试时,它工作正常。
请帮忙,谢谢
【问题讨论】:
标签: react-native redux react-native-debugger