Skip to content

Instantly share code, notes, and snippets.

@2j2e 2j2e/index.js
Last active Nov 27, 2015

Embed
What would you like to do?
Long-short story about redux-router
// I've got a strange behaviour of my very first app run
Object {type: "@@redux/INIT"}
index.js:22 Object {type: "@@redux/PROBE_UNKNOWN_ACTION_8.s.t.3.h.j.x.x.b.t.9"}
index.js:22 Object {type: "@@redux/INIT"}
index.js:22 Object {type: "@@reduxReactRouter/routerDidChange", payload: Object}
configureStore.js:27 Object {pathname: "/", search: "", hash: "", state: null, action: "POP"}
configureStore.js:27 Object {pathname: "/", search: "", hash: "", state: null, action: "REPLACE"}
index.js:22 Object {type: "@@reduxReactRouter/replaceRoutes", payload: Object}
index.js:22 Object {type: "@@reduxReactRouter/routerDidChange", payload: Object}
configureStore.js:27 Object {pathname: "/", search: "", hash: "", state: null, action: "REPLACE"}
configureStore.js:27 Object {pathname: "/", search: "", hash: "", state: null, action: "REPLACE"}
index.js:22 Object {type: "ReceiveInitialData", data: Object}
configureStore.js:27 Object {pathname: "/", search: "", hash: "", state: null, action: "REPLACE"}
// I started digging and found that 1 month ago this issue was fixed by next commit and haven't been release with next betaN
// https://github.com/rackt/redux-router/commit/b96c71b1a8ca7f21d593d9ab4ea8db9c0eb58104
// After the fix call started to look next
Object {type: "@@redux/INIT"}
index.js:22 Object {type: "@@redux/PROBE_UNKNOWN_ACTION_c.x.1.w.6.i.2.7.q.f.r"}
index.js:22 Object {type: "@@redux/INIT"}
index.js:22 Object {type: "@@reduxReactRouter/routerDidChange", payload: Object}
configureStore.js:27 Object {pathname: "/", search: "", hash: "", state: null, action: "POP"}
configureStore.js:27 Object {pathname: "/", search: "", hash: "", state: null, action: "REPLACE"}
index.js:22 Object {type: "@@reduxReactRouter/replaceRoutes", payload: Object}
index.js:22 Object {type: "@@reduxReactRouter/routerDidChange", payload: Object}
configureStore.js:27 Object {pathname: "/", search: "", hash: "", state: null, action: "REPLACE"}
index.js:22 Object {type: "ReceiveInitialData", data: Object}
// Be cafrefull with unstable libraries and take a look how often they publishing their changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.