Open Icehunter opened 6 years ago
The same issue occurs with the definition of persistReducer. The reducer function returned is missing the | undefined
for the state, so redux 4.0 rejects the persistedReducer when you try to create the store from it.
Since you already have a pull request for updating this bit, do you want to add the fix for the persistReducer function too?
export function persistReducer<S, A>(config: PersistConfig, baseReducer: BaseReducer<S, A>): (s: S | undefined, a: A) => S & PersistPartial;
Relevant Code:
store.ts
application.tsx
My User reducer is exported as follows:
Using 5.5.0 with typescript 2.6.2 produces no error; but if I update to 5.9.1; I get this one. I'm really disliking typescript updates/usage lately...