You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing an Partial<StoreState> to createStore<StoreState, AnyAction, {}, {}> as preloaded state, even when using the result of combineReducers, type checking fails as of redux 4.0.5
Nevermind I was using the following type arguments createStore<StoreState, AnyAction, {}, {}> and had to adjust to createStore<CombinedState<StoreState>, AnyAction, {}, {}> as of redux 4.0.5 and is probably the intended behavior.
When passing an
Partial<StoreState>
tocreateStore<StoreState, AnyAction, {}, {}>
as preloaded state, even when using the result ofcombineReducers
, type checking fails as of redux 4.0.5Steps to Reproduce
Find a minimal demo here:
https://codesandbox.io/s/blazing-rgb-o8f03
What is the expected behavior?
It should not throw type errors as in redux 4.0.4
Might be related with #3485
The text was updated successfully, but these errors were encountered: