Closed callumsteele4 closed 7 years ago
I was having trouble implementing redux-immutable with react-router-redux using the selector described in the README.md.
I would receive the following error:
Uncaught TypeError: Cannot read property 'charAt' of undefined at matchRoutes
I believe this is because the example is only converting the routing state shallowly, and can be fixed by using:
return state.get('routing').toJS()
instead of:
return state.get('routing').toObject()
@callumsteele4 can you confirm that toJS works?
toJS
Its working for me with this change.
Thank you, @callumsteele4
I was having trouble implementing redux-immutable with react-router-redux using the selector described in the README.md.
I would receive the following error:
I believe this is because the example is only converting the routing state shallowly, and can be fixed by using:
instead of: