{"action":"created","issue":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/748","labels_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/748/labels{/name}","comments_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/748/comments","events_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/748/events","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/748","id":124235032,"number":748,"title":"Server-side routing not working; globalState's `router` attribute is `null` on server","user":{"login":"chadoh","id":221614,"avatar_url":"https://avatars.githubusercontent.com/u/221614?v=3","gravatar_id":"","url":"https://api.github.com/users/chadoh","html_url":"https://github.com/chadoh","followers_url":"https://api.github.com/users/chadoh/followers","following_url":"https://api.github.com/users/chadoh/following{/other_user}","gists_url":"https://api.github.com/users/chadoh/gists{/gist_id}","starred_url":"https://api.github.com/users/chadoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadoh/subscriptions","organizations_url":"https://api.github.com/users/chadoh/orgs","repos_url":"https://api.github.com/users/chadoh/repos","events_url":"https://api.github.com/users/chadoh/events{/privacy}","received_events_url":"https://api.github.com/users/chadoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-29T16:30:00Z","updated_at":"2015-12-29T16:46:27Z","closed_at":null,"body":"I just cloned a fresh version of this project and added this `console.log` in `App.js`:\r\n\r\n``` es6\r\nfunction fetchData(getState, dispatch) {\r\n  const promises = [];\r\n  console.log(getState());\r\n  ...\r\n  return Promise.all(promises);\r\n}\r\n```\r\n\r\nAnd on the server, this is what's logged out:\r\n\r\n```\r\n[1] { router: null,\r\n[1]   auth: { loaded: false },\r\n[1]   form: {},\r\n[1]   multireducer:\r\n[1]    { counter1: { count: 0 },\r\n[1]      counter2: { count: 0 },\r\n[1]      counter3: { count: 0 } },\r\n[1]   info: { loaded: false },\r\n[1]   widgets: { loaded: false, editing: {}, saveError: {} } }\r\n```\r\n\r\nWhy does `router` === `null`? This makes me very sad. I don't know how to fix it, and in my app I need to actually know what the route params are in order to make the correct API query before rendering my components."},"comment":{"url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/comments/167828177","html_url":"https://github.com/erikras/react-redux-universal-hot-example/issues/748#issuecomment-167828177","issue_url":"https://api.github.com/repos/erikras/react-redux-universal-hot-example/issues/748","id":167828177,"user":{"login":"chadoh","id":221614,"avatar_url":"https://avatars.githubusercontent.com/u/221614?v=3","gravatar_id":"","url":"https://api.github.com/users/chadoh","html_url":"https://github.com/chadoh","followers_url":"https://api.github.com/users/chadoh/followers","following_url":"https://api.github.com/users/chadoh/following{/other_user}","gists_url":"https://api.github.com/users/chadoh/gists{/gist_id}","starred_url":"https://api.github.com/users/chadoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadoh/subscriptions","organizations_url":"https://api.github.com/users/chadoh/orgs","repos_url":"https://api.github.com/users/chadoh/repos","events_url":"https://api.github.com/users/chadoh/events{/privacy}","received_events_url":"https://api.github.com/users/chadoh/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T16:46:27Z","updated_at":"2015-12-29T16:46:27Z","body":"Is there some other way I'm supposed to access the current route from my components? If so, what's the point of `redux-router`?"}}