我正在尝试使用redux Toolkit在我的React应用程序中集成Reduxpersist。不过,我在集成过程中遇到了以下错误: TypeError: storage.getItem(...).then is not a function 下面是我的商店的样子: const transientReducermiddleware: getDefaultMiddleware({ ignoredActions: [FLUSH, REHYDRA
我正在将redux-persist合并到我的react应用程序中,并且收到以下错误: TypeError: this.props.persistor.subscribe不是一个函数import thunk from "redux-thunk"
import promise from "redux-promise-middleware&qu
import { createStore, combineReducers, applyMiddleware } from 'redux';import AsyncStorage from '@react-native-async-storage/async-storage';
importthunk from 'redux</em
正如标题所说,我通过UserCardList组件中的api映射了一个数组,它工作得很好,但一旦我用PersistGate包装应用程序,它就会告诉我"TypeError: users.map不是一个函数“,而来自redux logger的错误消息是”redux-users.map:PersistGate out for PersistGate“root。";
import { PersistGate } from "redux-persist
我正在用reactjs开发一个应用程序,我使用redux作为我的状态管理工具。Uncaught TypeError: getDefaultMiddleware is not a functionimport { configureStore,/UserSlice'
import storage from 'redux-persist/lib/storage'