{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/2290","labels_url":"https://api.github.com/repos/rackt/react-router/issues/2290/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/2290/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/2290/events","html_url":"https://github.com/rackt/react-router/issues/2290","id":111729965,"number":2290,"title":"New way to do this.context.router.getCurrentRoutes() ?","user":{"login":"framerate","id":74291,"avatar_url":"https://avatars.githubusercontent.com/u/74291?v=3","gravatar_id":"","url":"https://api.github.com/users/framerate","html_url":"https://github.com/framerate","followers_url":"https://api.github.com/users/framerate/followers","following_url":"https://api.github.com/users/framerate/following{/other_user}","gists_url":"https://api.github.com/users/framerate/gists{/gist_id}","starred_url":"https://api.github.com/users/framerate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framerate/subscriptions","organizations_url":"https://api.github.com/users/framerate/orgs","repos_url":"https://api.github.com/users/framerate/repos","events_url":"https://api.github.com/users/framerate/events{/privacy}","received_events_url":"https://api.github.com/users/framerate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-15T23:48:53Z","updated_at":"2015-10-16T23:47:21Z","closed_at":"2015-10-16T03:18:13Z","body":"I don't see this documented anywhere and am having trouble myself. It should probably documented for any future people?\r\n\r\nI used to do:\r\n\r\n```\r\nHeader.contextTypes = {\r\n    router: React.PropTypes.func.isRequired\r\n};\r\n```\r\n\r\nwith\r\n\r\n```\r\nvar currentRoutes = this.context.router.getCurrentRoutes();\r\n```\r\n\r\nI see that we should now be using:\r\n\r\n```\r\nHeader.contextTypes = {\r\n    history: React.PropTypes.object.isRequired\r\n};\r\n```\r\n\r\nBut how do we get the current route from here? Thanks!"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/148866820","html_url":"https://github.com/rackt/react-router/issues/2290#issuecomment-148866820","issue_url":"https://api.github.com/repos/rackt/react-router/issues/2290","id":148866820,"user":{"login":"taion","id":3112159,"avatar_url":"https://avatars.githubusercontent.com/u/3112159?v=3","gravatar_id":"","url":"https://api.github.com/users/taion","html_url":"https://github.com/taion","followers_url":"https://api.github.com/users/taion/followers","following_url":"https://api.github.com/users/taion/following{/other_user}","gists_url":"https://api.github.com/users/taion/gists{/gist_id}","starred_url":"https://api.github.com/users/taion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion/subscriptions","organizations_url":"https://api.github.com/users/taion/orgs","repos_url":"https://api.github.com/users/taion/repos","events_url":"https://api.github.com/users/taion/events{/privacy}","received_events_url":"https://api.github.com/users/taion/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T23:47:21Z","updated_at":"2015-10-16T23:47:21Z","body":"@knowbody \r\n\r\nDo you think there's some way we could better call out the upgrade guide? I wonder if it gets a little bit lost in the \"Docs & Help\" listing."}}