Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is 'router' being assigned to the state? #66

Open
baj84 opened this issue Apr 2, 2020 · 0 comments
Open

How is 'router' being assigned to the state? #66

baj84 opened this issue Apr 2, 2020 · 0 comments

Comments

@baj84
Copy link

baj84 commented Apr 2, 2020

As per the connected-react-router documentation, you must assign the router to the state, like so
const createRootReducer = (history) => combineReducers({ router: connectRouter(history), ... // rest of your reducers })

I can't see where this is being done in your code, but router is still assigned to the state. Where does this happen?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant