import { createStore, combineReducers, applyMiddleware } from 'redux';import AsyncStorage from '@react-native-async-storage/async-storage';
importthunk from 'redux</em
我正在尝试在我的React Native应用上实现Redux-persist。middlewares)); return { store, persistor };
}; 但是现在,我得到了错误TypeError: store.getState is not a function (In 'store.getState()', 'store.getState'
TypeError: store.getState不是一个函数。(在'store.getState()‘中,'store.getState’是未定义的
警告:错误的道具类型:无效的function类型的支柱store提供给Provider,预期的objectfrom 'react';
import Store from './store/configureStor
我正在尝试做一个登录表单,它要求我在react + redux应用程序中迁移我的soloreac应用程序。我面临着许多错误,并且被TypeError: store.getState is not a function困住了。我是这方面的新手,任何帮助都会成为学徒。/App.scss';
import Home from ".node_module
Button.js组件import "../styles/button.scss"
import store from "..在onClick函数运行后,redux存储更新到正确的值,mapStateToProps也以正确的状态运行,如果我尝试从支柱记录状态,则仍然运行旧的值。如果在返回JSX之前在呈现函数中执行相同的日志操作,则从道具中获得正确的状态,并且无法理解为什么在<