我一直在尝试将redux-persist集成到一个已经使用redux的项目中。
我遵循了基本的用法示例,但得到了错误store.getState is not a function.
下面是相关的代码。
商店:
import {createStore, combineReducers, applyMiddleware, compose} from "redux";
import {persistStore, autoRehydrate} from 'redux-persist'
import thunk from "redux-thunk";
i