Skip to content

React-router-redux selector documentation issue #53

@callumsteele4

Description

@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:

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions