的任何上下文或道具中找不到“商店”我不明白为什么我会收到错误。我确实在我的代码中包含了所有必需的库。顺便说一句,我用navReducer在连接(应用程序)
这是我的getStore代码:
export default function getStore(navReducer) {
const store= createStore(
getRootReducer(navReducer),
undefined,
applyMiddleware(thunk)
);
return store;
}
问题就出在我的index.js,我命名为类应用
对不起我的代码太长,但我认为包含它很重要。
难道ü尝试<提供者储存= {存储}>? – Vicky
是的,我确实尝试过。仍然得到相同的错误 – gdphy
你可以提供'appStoreConfig'的代码吗? – sergei