在添加redux-persist后,第二次打开应用程序后,我看到白色闪烁和白屏死亡。redux-persist的版本是"^5.10.0“。这是我的App.js文件: import { PersistGate } from 'redux-persist/integration/react'import thunkMiddleware from 'redux-thunk'
我正在尝试将redux-persist应用到我的网站上,但是我得到了这两个错误。找不到真正造成错误的原因。需要一些帮助来解决这个问题。任何帮助都是非常感谢的!prop `store` of type `function` supplied to `Provider`, expected `object`.
import { createStore, applyMiddleware } from 'redux
我将@redux/toolkit与redux-persist一起使用在与TypeScript交互的本机应用程序中。toolkit'; import { persistReducer, persistStore } from 'redux-persistRootState` and `AppDispatch` types from the store itself
export type RootState