Closed frankcollins3 closed 1 year ago
👍 App.tsx {RootState} works:
👎 Main.tsx {RootState} returns definability error
error: Module '"redux/store/rootReducer"' has no exported member 'RootState'. Did you mean to use 'import RootState from "redux/store/rootReducer"' instead?ts(2614) import RootState No quick fixes available
I change the declaration of RootState to remove importing as an object. import RootState from "redux/store/rootReducer"
Now the error mentions "used as value. did you mean typeof ?" when handling RootState in useSelector
[4:27am]
👍 could share all 3 blocks of code but got it figured out. {RootState} was the problem [10:08pm]
attempting to do: config @redux/toolkit
error: redux/store/rootReducer: 👍 HYDRO_SETTINGS components/webpage/main.tsx: 👎 hydroSettings
proposed approach: dig again config again