-
Notifications
You must be signed in to change notification settings - Fork 644
@@router/INIT_PATH doesn't work with initalState? #122
Comments
Hi @theaqua, thanks for the input. I just don't think we ever thought about this use-case. I played around with this now, but got into a problem with our tests that makes this difficult right now. So it's definitely possible to implement, but I think we need to solve the test issue before adding this (but we're very open to PRs, so if someone has an idea, please try it out and see if it works!) @jlongster The problem as far as I can see is that if (!lastRoute) {
// if getRouterState() is set, default to that
// otherwise do what we do today
} But that won't work in the tests as I think we need to consider moving everything into a function that you invoke (similar to |
Yeah, it's not great that we change This might be fixed by adding: if(getRouterState().path) {
lastRoute = getRouterState();
} Right when |
Yep, no problem in apps, only a problem in the tests |
This is fixed in 2.0.0 AFAIK. |
Hi, I have this setup of my store:
and then at
app.jsx
I usesyncReduxAndRouter(history, store)
.When I start my app
redux-simple-router
ignores myinitialState
withrouting.path
. Why?The text was updated successfully, but these errors were encountered: