Hello,
I am using redux-immutable with TypeScript and found this issue.
The combineReducer (provided by redux-immutable) returns a plain object instead of Immutable.Collection.
Such typing force me to do state.sidebar instead of state.get('sidebar') in mapStateToProps.
const mapStateToProps = (state: StateType<typeof rootReducer>) => ({
sidebar: state.get('sidebar'), // <- this is correct example of usage
})


Hello,
I am using
redux-immutablewithTypeScriptand found this issue.The
combineReducer(provided byredux-immutable) returns a plain object instead ofImmutable.Collection.Such typing force me to do
state.sidebarinstead ofstate.get('sidebar')inmapStateToProps.