Closed jayesbe closed 2 years ago
Fixed as per https://github.com/rt2zz/redux-persist/issues/1140#issuecomment-1034172681
Only change I had to make was one line
const persistedReducer = persistReducer(persistConfig, rootReducer);
to
const persistedReducer = persistReducer(persistConfig, rootReducer) as typeof rootReducer;
When using createTransform, something happens with the types such that any selectors i've created cannot no longer detect the types defined for the State
ie, this works
this however, does not
Typescript immediately starts complaining
the routesTransform looks like this
There is no actual transform occurring.. why is typescript complaining ?