Closed igl closed 8 years ago
Would also like a resolution to this problem as mapStateToProps
is being called twice on every page load due to @@reduxReactRouter/routerDidChange
.
@MikeBarnhardt this was fixed by #183 @igl what would you prefer?
something like
function routerStateReducer(state = { routes: [], params: null, location: null, components: [], }, action) {..}
I use a custom store-enhancer now. I can't disable page transition in the dev-tools but all other headaches are gone and the simplicity of 45 lines vs redux-router is worth it.
@igi Great!
@Scarysize Thanks!
Having the initial state of the redux-router-reducer generate
null
until the@routerDidChange
action fires makes using the values in amapStateToProps
function rather ugly.has to be:
How can i avoid this?