-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
react-router-redux really needs a custom reducer? #19
Comments
@remojansen The issue that you have referenced to says:
Which is exactly what the docs tell you do to: https://github.com/gajus/redux-immutable/tree/ac78103fc6939ef24c713f5a765f1b7187b9891c#using-with-react-router-redux |
Are you talking about reducer specifically? I do not see how export function routeReducer(state = initialState, { type, payload: location }) {
if (type !== UPDATE_LOCATION) {
return state
}
return { ...state, location }
} |
I just saw that |
If you really want that part of the state to be immutable you can write your own reducer that does the same, and pass something like |
The docs say the following:
However, it seems to be supported.
Can you guys please clarify this?
Thanks!
The text was updated successfully, but these errors were encountered: