store.ts 里的RootState报错
来源:11-11 【redux-persist】登录持久化

慕仔5555278
2021-02-19
store.ts 里的export type RootState = ReturnType
写回答
3回答
-
慕仔5555278
提问者
2021-02-20
export type RootState = ReturnType<typeof store.getState>
应该改成
export type RootState = ReturnType<typeof persistedReducer>
012021-02-21 -
慕仔5555278
提问者
2021-02-20
报错截图:
00 -
阿莱克斯刘
2021-02-20
可以截个图看看报错信息吗?
00
相似问题