Hello i use Immuteble Map for state and when i try maspStateToProps i have this error.
Uncaught Invariant Violation:
mapStateToProps
must re
This github issue covers this exact problem: https://github.com/reactjs/react-redux/issues/60.
You can manually extract the values you want from your Map in your mapStateToProps function:
const mapStateToProps = (state) => {
return {
constraints: state.get('constraints'),
selectedAmount: state.get('selectedAmount'),
selectedTerm: state.get('selectedTerm'),
};
}