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

Numerous history state changes during very first run #2602

Closed
2j2e opened this issue Nov 26, 2015 · 1 comment
Closed

Numerous history state changes during very first run #2602

2j2e opened this issue Nov 26, 2015 · 1 comment

Comments

@2j2e
Copy link

2j2e commented Nov 26, 2015

I'm trying to handle history state change using this way.

const redux = createRedux(stores);
BrowserHistory.listen(location => redux.dispatch(routeLocationDidUpdate(location)));

Next is a very first visit to the page and as you can see it changes the state 5 times.
Last one after my custom action (still investigation did my action affected such behaviour).
First POP is ok.
What's happening during next 3-4 times?

Object {type: "@@redux/INIT"}
index.js:22 Object {type: "@@redux/PROBE_UNKNOWN_ACTION_2.z.u.2.t.q.s.q.0.k.9"}
index.js:22 Object {type: "@@redux/INIT"}
index.js:22 Object {type: "@@reduxReactRouter/routerDidChange", payload: Object}
index.js:7 Object {pathname: "/firstScreen", search: "", hash: "", state: null, action: "POP"…}
index.js:7 Object {pathname: "/firstScreen", search: "", hash: "", state: null, action: "REPLACE"…}
index.js:22 Object {type: "@@reduxReactRouter/replaceRoutes", payload: Object}
index.js:22 Object {type: "@@reduxReactRouter/routerDidChange", payload: Object}
index.js:7 Object {pathname: "/firstScreen", search: "", hash: "", state: null, action: "REPLACE"…}
index.js:7 Object {pathname: "/firstScreen", search: "", hash: "", state: null, action: "REPLACE"…}
index.js:22 Object {type: "CustomInitAction", data: Object}
index.js:7 Object {pathname: "/firstScreen", search: "", hash: "", state: null, action: "REPLACE"…}
@taion
Copy link
Contributor

taion commented Nov 26, 2015

You can see from your logs that this is stuff that redux-router is doing.

@taion taion closed this as completed Nov 26, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants