{"action":"created","comment":{"url":"https://api.github.com/repos/odota/ui/pulls/comments/80619310","pull_request_review_id":1664870,"id":80619310,"diff_hunk":"@@ -48,7 +49,14 @@ const store = createStore(reducer, compose(\n store.dispatch(getMetadata());\n // Create an enhanced history that syncs navigation events with the store\n const history = syncHistoryWithStore(browserHistory, store);\n-history.listen(location => store.dispatch(setActiveTab(location.pathname)));\n+history.listen(({ state, pathname }) => {\n+  if (state && state.tabChange) {\n+    store.dispatch(setActiveTab(pathname));\n+  } else if (pathname.includes('histograms')) {\n+    // I'd like to do this better if there is a way\n+    store.dispatch(setActiveTab(`${pathname.slice(0, pathname.lastIndexOf('/'))}/${histogramNames[0]}`));","path":"src/index.jsx","position":22,"original_position":22,"commit_id":"a4a36aa09aa20365261176d76b043ecf14fd2935","original_commit_id":"a4a36aa09aa20365261176d76b043ecf14fd2935","user":{"login":"howardchung","id":3134520,"avatar_url":"https://avatars.githubusercontent.com/u/3134520?v=3","gravatar_id":"","url":"https://api.github.com/users/howardchung","html_url":"https://github.com/howardchung","followers_url":"https://api.github.com/users/howardchung/followers","following_url":"https://api.github.com/users/howardchung/following{/other_user}","gists_url":"https://api.github.com/users/howardchung/gists{/gist_id}","starred_url":"https://api.github.com/users/howardchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardchung/subscriptions","organizations_url":"https://api.github.com/users/howardchung/orgs","repos_url":"https://api.github.com/users/howardchung/repos","events_url":"https://api.github.com/users/howardchung/events{/privacy}","received_events_url":"https://api.github.com/users/howardchung/received_events","type":"User","site_admin":false},"body":"I think you should just have the selector/histogram components check this.props.routeParams and render themselves accordingly.","created_at":"2016-09-27T04:41:29Z","updated_at":"2016-09-27T04:41:29Z","html_url":"https://github.com/odota/ui/pull/188#discussion_r80619310","pull_request_url":"https://api.github.com/repos/odota/ui/pulls/188","_links":{"self":{"href":"https://api.github.com/repos/odota/ui/pulls/comments/80619310"},"html":{"href":"https://github.com/odota/ui/pull/188#discussion_r80619310"},"pull_request":{"href":"https://api.github.com/repos/odota/ui/pulls/188"}}},"pull_request":{"url":"https://api.github.com/repos/odota/ui/pulls/188","id":86666441,"html_url":"https://github.com/odota/ui/pull/188","diff_url":"https://github.com/odota/ui/pull/188.diff","patch_url":"https://github.com/odota/ui/pull/188.patch","issue_url":"https://api.github.com/repos/odota/ui/issues/188","number":188,"state":"open","locked":false,"title":"Histograms","user":{"login":"mike-robertson","id":8756876,"avatar_url":"https://avatars.githubusercontent.com/u/8756876?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-robertson","html_url":"https://github.com/mike-robertson","followers_url":"https://api.github.com/users/mike-robertson/followers","following_url":"https://api.github.com/users/mike-robertson/following{/other_user}","gists_url":"https://api.github.com/users/mike-robertson/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-robertson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-robertson/subscriptions","organizations_url":"https://api.github.com/users/mike-robertson/orgs","repos_url":"https://api.github.com/users/mike-robertson/repos","events_url":"https://api.github.com/users/mike-robertson/events{/privacy}","received_events_url":"https://api.github.com/users/mike-robertson/received_events","type":"User","site_admin":false},"body":"WIP. Not ready to merge but here are preliminary efforts.\r\n![](http://i.imgur.com/Jz9AX9p.jpg)","created_at":"2016-09-25T23:25:36Z","updated_at":"2016-09-27T04:41:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddb18392855caf2a4aac2860243f659eec28e5b4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/odota/ui/pulls/188/commits","review_comments_url":"https://api.github.com/repos/odota/ui/pulls/188/comments","review_comment_url":"https://api.github.com/repos/odota/ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/odota/ui/issues/188/comments","statuses_url":"https://api.github.com/repos/odota/ui/statuses/a4a36aa09aa20365261176d76b043ecf14fd2935","head":{"label":"odota:histograms","ref":"histograms","sha":"a4a36aa09aa20365261176d76b043ecf14fd2935","user":{"login":"odota","id":10602524,"avatar_url":"https://avatars.githubusercontent.com/u/10602524?v=3","gravatar_id":"","url":"https://api.github.com/users/odota","html_url":"https://github.com/odota","followers_url":"https://api.github.com/users/odota/followers","following_url":"https://api.github.com/users/odota/following{/other_user}","gists_url":"https://api.github.com/users/odota/gists{/gist_id}","starred_url":"https://api.github.com/users/odota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odota/subscriptions","organizations_url":"https://api.github.com/users/odota/orgs","repos_url":"https://api.github.com/users/odota/repos","events_url":"https://api.github.com/users/odota/events{/privacy}","received_events_url":"https://api.github.com/users/odota/received_events","type":"Organization","site_admin":false},"repo":{"id":59816990,"name":"ui","full_name":"odota/ui","owner":{"login":"odota","id":10602524,"avatar_url":"https://avatars.githubusercontent.com/u/10602524?v=3","gravatar_id":"","url":"https://api.github.com/users/odota","html_url":"https://github.com/odota","followers_url":"https://api.github.com/users/odota/followers","following_url":"https://api.github.com/users/odota/following{/other_user}","gists_url":"https://api.github.com/users/odota/gists{/gist_id}","starred_url":"https://api.github.com/users/odota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odota/subscriptions","organizations_url":"https://api.github.com/users/odota/orgs","repos_url":"https://api.github.com/users/odota/repos","events_url":"https://api.github.com/users/odota/events{/privacy}","received_events_url":"https://api.github.com/users/odota/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odota/ui","description":"Web UI for Dota 2 data (BETA)","fork":false,"url":"https://api.github.com/repos/odota/ui","forks_url":"https://api.github.com/repos/odota/ui/forks","keys_url":"https://api.github.com/repos/odota/ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odota/ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odota/ui/teams","hooks_url":"https://api.github.com/repos/odota/ui/hooks","issue_events_url":"https://api.github.com/repos/odota/ui/issues/events{/number}","events_url":"https://api.github.com/repos/odota/ui/events","assignees_url":"https://api.github.com/repos/odota/ui/assignees{/user}","branches_url":"https://api.github.com/repos/odota/ui/branches{/branch}","tags_url":"https://api.github.com/repos/odota/ui/tags","blobs_url":"https://api.github.com/repos/odota/ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odota/ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odota/ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/odota/ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odota/ui/statuses/{sha}","languages_url":"https://api.github.com/repos/odota/ui/languages","stargazers_url":"https://api.github.com/repos/odota/ui/stargazers","contributors_url":"https://api.github.com/repos/odota/ui/contributors","subscribers_url":"https://api.github.com/repos/odota/ui/subscribers","subscription_url":"https://api.github.com/repos/odota/ui/subscription","commits_url":"https://api.github.com/repos/odota/ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/odota/ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/odota/ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/odota/ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/odota/ui/contents/{+path}","compare_url":"https://api.github.com/repos/odota/ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odota/ui/merges","archive_url":"https://api.github.com/repos/odota/ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odota/ui/downloads","issues_url":"https://api.github.com/repos/odota/ui/issues{/number}","pulls_url":"https://api.github.com/repos/odota/ui/pulls{/number}","milestones_url":"https://api.github.com/repos/odota/ui/milestones{/number}","notifications_url":"https://api.github.com/repos/odota/ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odota/ui/labels{/name}","releases_url":"https://api.github.com/repos/odota/ui/releases{/id}","deployments_url":"https://api.github.com/repos/odota/ui/deployments","created_at":"2016-05-27T08:06:05Z","updated_at":"2016-09-24T05:09:51Z","pushed_at":"2016-09-27T03:59:14Z","git_url":"git://github.com/odota/ui.git","ssh_url":"git@github.com:odota/ui.git","clone_url":"https://github.com/odota/ui.git","svn_url":"https://github.com/odota/ui","homepage":"http://odota.github.io","size":5985,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":31,"forks":15,"open_issues":31,"watchers":22,"default_branch":"master"}},"base":{"label":"odota:master","ref":"master","sha":"50b27bc93bb71c3805a4b931f948625e8c23ea2f","user":{"login":"odota","id":10602524,"avatar_url":"https://avatars.githubusercontent.com/u/10602524?v=3","gravatar_id":"","url":"https://api.github.com/users/odota","html_url":"https://github.com/odota","followers_url":"https://api.github.com/users/odota/followers","following_url":"https://api.github.com/users/odota/following{/other_user}","gists_url":"https://api.github.com/users/odota/gists{/gist_id}","starred_url":"https://api.github.com/users/odota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odota/subscriptions","organizations_url":"https://api.github.com/users/odota/orgs","repos_url":"https://api.github.com/users/odota/repos","events_url":"https://api.github.com/users/odota/events{/privacy}","received_events_url":"https://api.github.com/users/odota/received_events","type":"Organization","site_admin":false},"repo":{"id":59816990,"name":"ui","full_name":"odota/ui","owner":{"login":"odota","id":10602524,"avatar_url":"https://avatars.githubusercontent.com/u/10602524?v=3","gravatar_id":"","url":"https://api.github.com/users/odota","html_url":"https://github.com/odota","followers_url":"https://api.github.com/users/odota/followers","following_url":"https://api.github.com/users/odota/following{/other_user}","gists_url":"https://api.github.com/users/odota/gists{/gist_id}","starred_url":"https://api.github.com/users/odota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odota/subscriptions","organizations_url":"https://api.github.com/users/odota/orgs","repos_url":"https://api.github.com/users/odota/repos","events_url":"https://api.github.com/users/odota/events{/privacy}","received_events_url":"https://api.github.com/users/odota/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odota/ui","description":"Web UI for Dota 2 data (BETA)","fork":false,"url":"https://api.github.com/repos/odota/ui","forks_url":"https://api.github.com/repos/odota/ui/forks","keys_url":"https://api.github.com/repos/odota/ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odota/ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odota/ui/teams","hooks_url":"https://api.github.com/repos/odota/ui/hooks","issue_events_url":"https://api.github.com/repos/odota/ui/issues/events{/number}","events_url":"https://api.github.com/repos/odota/ui/events","assignees_url":"https://api.github.com/repos/odota/ui/assignees{/user}","branches_url":"https://api.github.com/repos/odota/ui/branches{/branch}","tags_url":"https://api.github.com/repos/odota/ui/tags","blobs_url":"https://api.github.com/repos/odota/ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odota/ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odota/ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/odota/ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odota/ui/statuses/{sha}","languages_url":"https://api.github.com/repos/odota/ui/languages","stargazers_url":"https://api.github.com/repos/odota/ui/stargazers","contributors_url":"https://api.github.com/repos/odota/ui/contributors","subscribers_url":"https://api.github.com/repos/odota/ui/subscribers","subscription_url":"https://api.github.com/repos/odota/ui/subscription","commits_url":"https://api.github.com/repos/odota/ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/odota/ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/odota/ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/odota/ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/odota/ui/contents/{+path}","compare_url":"https://api.github.com/repos/odota/ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odota/ui/merges","archive_url":"https://api.github.com/repos/odota/ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odota/ui/downloads","issues_url":"https://api.github.com/repos/odota/ui/issues{/number}","pulls_url":"https://api.github.com/repos/odota/ui/pulls{/number}","milestones_url":"https://api.github.com/repos/odota/ui/milestones{/number}","notifications_url":"https://api.github.com/repos/odota/ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odota/ui/labels{/name}","releases_url":"https://api.github.com/repos/odota/ui/releases{/id}","deployments_url":"https://api.github.com/repos/odota/ui/deployments","created_at":"2016-05-27T08:06:05Z","updated_at":"2016-09-24T05:09:51Z","pushed_at":"2016-09-27T03:59:14Z","git_url":"git://github.com/odota/ui.git","ssh_url":"git@github.com:odota/ui.git","clone_url":"https://github.com/odota/ui.git","svn_url":"https://github.com/odota/ui","homepage":"http://odota.github.io","size":5985,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":31,"forks":15,"open_issues":31,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/odota/ui/pulls/188"},"html":{"href":"https://github.com/odota/ui/pull/188"},"issue":{"href":"https://api.github.com/repos/odota/ui/issues/188"},"comments":{"href":"https://api.github.com/repos/odota/ui/issues/188/comments"},"review_comments":{"href":"https://api.github.com/repos/odota/ui/pulls/188/comments"},"review_comment":{"href":"https://api.github.com/repos/odota/ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/odota/ui/pulls/188/commits"},"statuses":{"href":"https://api.github.com/repos/odota/ui/statuses/a4a36aa09aa20365261176d76b043ecf14fd2935"}}}}
{"actor":{"display_login":"howardchung"}}