{"action":"opened","issue":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/3945","repository_url":"https://api.github.com/repos/ReactTraining/react-router","labels_url":"https://api.github.com/repos/ReactTraining/react-router/issues/3945/labels{/name}","comments_url":"https://api.github.com/repos/ReactTraining/react-router/issues/3945/comments","events_url":"https://api.github.com/repos/ReactTraining/react-router/issues/3945/events","html_url":"https://github.com/ReactTraining/react-router/issues/3945","id":179205418,"number":3945,"title":"activeClassName does not work when the links are in sub-components","user":{"login":"drcmda","id":2223602,"avatar_url":"https://avatars.githubusercontent.com/u/2223602?v=3","gravatar_id":"","url":"https://api.github.com/users/drcmda","html_url":"https://github.com/drcmda","followers_url":"https://api.github.com/users/drcmda/followers","following_url":"https://api.github.com/users/drcmda/following{/other_user}","gists_url":"https://api.github.com/users/drcmda/gists{/gist_id}","starred_url":"https://api.github.com/users/drcmda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcmda/subscriptions","organizations_url":"https://api.github.com/users/drcmda/orgs","repos_url":"https://api.github.com/users/drcmda/repos","events_url":"https://api.github.com/users/drcmda/events{/privacy}","received_events_url":"https://api.github.com/users/drcmda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-26T11:38:40Z","updated_at":"2016-09-26T11:38:40Z","closed_at":null,"body":"Example:\r\n\r\n```js\r\n<Router>\r\n    <Nav />\r\n    <Match exactly path=\"/overview\" component={Overview} />\r\n    <Match exactly path=\"/logs\" component={Logs} />\r\n</Router>\r\n\r\nconst Nav () => (\r\n    <ul>\r\n        <Link to=\"/overview\" className=\"item\" activeClassName=\"active blue\">Overview</Link>\r\n        <Link to=\"/logs\" className=\"item\" activeClassName=\"active blue\">Logs</Link>\r\n    </ul>\r\n)\r\n```\r\n\r\nWith the new router, how are routing informations passed down the tree? The Nav component works as in it changes the url, but it won't indicate which route is active, only on page refresh. When the Links are directly inside the Router component they work. I'm to figure out the system behind it but it just doesn't occur to me what's going on."}}
{"actor":{"display_login":"drcmda"}}