Redux 应用程序在第一次运行时无法加载。(无法将未定义或null转换为对象)

Redux 应用程序在第一次运行时无法加载。(无法将未定义或null转换为对象),redux,react-redux,persist,redux-offline,Redux,React Redux,Persist,Redux Offline,在我将redux离线添加到我的商店之前,一切正常 export const store = createStore( persistedReducer, composeWithDevTools(middleware, offline(offlineConfig)) ); 当我第一次加载应用程序时,这是一个错误。如果我再次刷新,错误就会消失 您能提供更多代码吗?offlineConfig的值是多少?@DanielStoyanoff从“@redux offline/redux of

在我将redux离线添加到我的商店之前,一切正常

export const store = createStore(
    persistedReducer,
    composeWithDevTools(middleware, offline(offlineConfig))
);
当我第一次加载应用程序时,这是一个错误。如果我再次刷新,错误就会消失


您能提供更多代码吗?offlineConfig的值是多少?@DanielStoyanoff从“@redux offline/redux offline/lib/defaults”导入offlineConfig;你能提供更多的代码吗?offlineConfig的值是多少?@DanielStoyanoff从“@redux offline/redux offline/lib/defaults”导入offlineConfig;