{"action":"created","issue":{"url":"https://api.github.com/repos/christianalfoni/cerebral-react/issues/23","labels_url":"https://api.github.com/repos/christianalfoni/cerebral-react/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/christianalfoni/cerebral-react/issues/23/comments","events_url":"https://api.github.com/repos/christianalfoni/cerebral-react/issues/23/events","html_url":"https://github.com/christianalfoni/cerebral-react/issues/23","id":116058059,"number":23,"title":"Add support for an active class on the Link component","user":{"login":"jeroenverfallie","id":1143308,"avatar_url":"https://avatars.githubusercontent.com/u/1143308?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenverfallie","html_url":"https://github.com/jeroenverfallie","followers_url":"https://api.github.com/users/jeroenverfallie/followers","following_url":"https://api.github.com/users/jeroenverfallie/following{/other_user}","gists_url":"https://api.github.com/users/jeroenverfallie/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenverfallie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenverfallie/subscriptions","organizations_url":"https://api.github.com/users/jeroenverfallie/orgs","repos_url":"https://api.github.com/users/jeroenverfallie/repos","events_url":"https://api.github.com/users/jeroenverfallie/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenverfallie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T08:07:46Z","updated_at":"2015-11-11T08:46:16Z","closed_at":null,"body":"When on the route, add an active class to links associated with the route.\r\n\r\n```jsx\r\n     <Link\r\n        signal={this.props.signals.somethingHappened}\r\n        params={{foo: 'bar'}}\r\n        activeClass=\"active\"\r\n        className=\"my-class\"\r\n      >Click me</Link>\r\n```\r\n\r\nA special case would be params.. sometimes you want the active class to show only when the params match, other times you want to only match the base."},"comment":{"url":"https://api.github.com/repos/christianalfoni/cerebral-react/issues/comments/155706591","html_url":"https://github.com/christianalfoni/cerebral-react/issues/23#issuecomment-155706591","issue_url":"https://api.github.com/repos/christianalfoni/cerebral-react/issues/23","id":155706591,"user":{"login":"Guria","id":36270,"avatar_url":"https://avatars.githubusercontent.com/u/36270?v=3","gravatar_id":"","url":"https://api.github.com/users/Guria","html_url":"https://github.com/Guria","followers_url":"https://api.github.com/users/Guria/followers","following_url":"https://api.github.com/users/Guria/following{/other_user}","gists_url":"https://api.github.com/users/Guria/gists{/gist_id}","starred_url":"https://api.github.com/users/Guria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guria/subscriptions","organizations_url":"https://api.github.com/users/Guria/orgs","repos_url":"https://api.github.com/users/Guria/repos","events_url":"https://api.github.com/users/Guria/events{/privacy}","received_events_url":"https://api.github.com/users/Guria/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T08:46:16Z","updated_at":"2015-11-11T08:46:16Z","body":"@christianalfoni \r\n* So we have to subscribe to `url` changes from store and we need access to controller instance. We can get it from context now, but I not sure if it always would there.\r\n* Also we have to know which path in store subscribe to, since it could be changed in router options. We could access router instance at `controller.service.router`.\r\n\r\nWe need to decide how we would subscribe to url changes. Also I would suggest to split component onto smart and dumb one."}}