{"action":"created","comment":{"url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/comments/116190279","pull_request_review_id":37794645,"id":116190279,"diff_hunk":"@@ -20,6 +44,52 @@ class Container extends Component {\n     }\n   }\n \n+  componentDidUpdate(prevProps) {\n+    if (this.props.stickyHeader && prevProps.isOpen !== this.props.isOpen) {\n+      this.getSidebarWidth()\n+    }\n+  }\n+\n+  componentWillUnmount() {\n+    if (this.props.stickyHeader) {\n+      removeListener('scroll', this.handleScroll)\n+      removeListener('resize', this.handleResize)\n+    }\n+  }\n+\n+  getSidebarWidth() {","path":"src/index.jsx","position":59,"original_position":59,"commit_id":"20b43883e6c7de66fbc7907bdba97e8ede5784c5","original_commit_id":"39a8b28c119420859625f4d8cef2abb8c8390661","user":{"login":"WebSeed","id":357579,"avatar_url":"https://avatars3.githubusercontent.com/u/357579?v=3","gravatar_id":"","url":"https://api.github.com/users/WebSeed","html_url":"https://github.com/WebSeed","followers_url":"https://api.github.com/users/WebSeed/followers","following_url":"https://api.github.com/users/WebSeed/following{/other_user}","gists_url":"https://api.github.com/users/WebSeed/gists{/gist_id}","starred_url":"https://api.github.com/users/WebSeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebSeed/subscriptions","organizations_url":"https://api.github.com/users/WebSeed/orgs","repos_url":"https://api.github.com/users/WebSeed/repos","events_url":"https://api.github.com/users/WebSeed/events{/privacy}","received_events_url":"https://api.github.com/users/WebSeed/received_events","type":"User","site_admin":false},"body":"👍  This should be `updateSidebarWidth`. A `get` should always return something.","created_at":"2017-05-12T09:41:35Z","updated_at":"2017-05-12T09:41:35Z","html_url":"https://github.com/JSainsburyPLC/react-timelines/pull/24#discussion_r116190279","pull_request_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/comments/116190279"},"html":{"href":"https://github.com/JSainsburyPLC/react-timelines/pull/24#discussion_r116190279"},"pull_request":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/24","id":119469804,"html_url":"https://github.com/JSainsburyPLC/react-timelines/pull/24","diff_url":"https://github.com/JSainsburyPLC/react-timelines/pull/24.diff","patch_url":"https://github.com/JSainsburyPLC/react-timelines/pull/24.patch","issue_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues/24","number":24,"state":"open","locked":false,"title":"Sticky Header","user":{"login":"rbrtsmith","id":4982001,"avatar_url":"https://avatars1.githubusercontent.com/u/4982001?v=3","gravatar_id":"","url":"https://api.github.com/users/rbrtsmith","html_url":"https://github.com/rbrtsmith","followers_url":"https://api.github.com/users/rbrtsmith/followers","following_url":"https://api.github.com/users/rbrtsmith/following{/other_user}","gists_url":"https://api.github.com/users/rbrtsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/rbrtsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbrtsmith/subscriptions","organizations_url":"https://api.github.com/users/rbrtsmith/orgs","repos_url":"https://api.github.com/users/rbrtsmith/repos","events_url":"https://api.github.com/users/rbrtsmith/events{/privacy}","received_events_url":"https://api.github.com/users/rbrtsmith/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-08T15:13:25Z","updated_at":"2017-05-12T09:41:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1a6b7744c52f64dae5757a56e6f30f5083b4081","assignee":{"login":"rbrtsmith","id":4982001,"avatar_url":"https://avatars1.githubusercontent.com/u/4982001?v=3","gravatar_id":"","url":"https://api.github.com/users/rbrtsmith","html_url":"https://github.com/rbrtsmith","followers_url":"https://api.github.com/users/rbrtsmith/followers","following_url":"https://api.github.com/users/rbrtsmith/following{/other_user}","gists_url":"https://api.github.com/users/rbrtsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/rbrtsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbrtsmith/subscriptions","organizations_url":"https://api.github.com/users/rbrtsmith/orgs","repos_url":"https://api.github.com/users/rbrtsmith/repos","events_url":"https://api.github.com/users/rbrtsmith/events{/privacy}","received_events_url":"https://api.github.com/users/rbrtsmith/received_events","type":"User","site_admin":false},"assignees":[{"login":"rbrtsmith","id":4982001,"avatar_url":"https://avatars1.githubusercontent.com/u/4982001?v=3","gravatar_id":"","url":"https://api.github.com/users/rbrtsmith","html_url":"https://github.com/rbrtsmith","followers_url":"https://api.github.com/users/rbrtsmith/followers","following_url":"https://api.github.com/users/rbrtsmith/following{/other_user}","gists_url":"https://api.github.com/users/rbrtsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/rbrtsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbrtsmith/subscriptions","organizations_url":"https://api.github.com/users/rbrtsmith/orgs","repos_url":"https://api.github.com/users/rbrtsmith/repos","events_url":"https://api.github.com/users/rbrtsmith/events{/privacy}","received_events_url":"https://api.github.com/users/rbrtsmith/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/24/commits","review_comments_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/24/comments","review_comment_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues/24/comments","statuses_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/statuses/20b43883e6c7de66fbc7907bdba97e8ede5784c5","head":{"label":"JSainsburyPLC:explore-sticky-header","ref":"explore-sticky-header","sha":"20b43883e6c7de66fbc7907bdba97e8ede5784c5","user":{"login":"JSainsburyPLC","id":11195398,"avatar_url":"https://avatars1.githubusercontent.com/u/11195398?v=3","gravatar_id":"","url":"https://api.github.com/users/JSainsburyPLC","html_url":"https://github.com/JSainsburyPLC","followers_url":"https://api.github.com/users/JSainsburyPLC/followers","following_url":"https://api.github.com/users/JSainsburyPLC/following{/other_user}","gists_url":"https://api.github.com/users/JSainsburyPLC/gists{/gist_id}","starred_url":"https://api.github.com/users/JSainsburyPLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSainsburyPLC/subscriptions","organizations_url":"https://api.github.com/users/JSainsburyPLC/orgs","repos_url":"https://api.github.com/users/JSainsburyPLC/repos","events_url":"https://api.github.com/users/JSainsburyPLC/events{/privacy}","received_events_url":"https://api.github.com/users/JSainsburyPLC/received_events","type":"Organization","site_admin":false},"repo":{"id":87245981,"name":"react-timelines","full_name":"JSainsburyPLC/react-timelines","owner":{"login":"JSainsburyPLC","id":11195398,"avatar_url":"https://avatars1.githubusercontent.com/u/11195398?v=3","gravatar_id":"","url":"https://api.github.com/users/JSainsburyPLC","html_url":"https://github.com/JSainsburyPLC","followers_url":"https://api.github.com/users/JSainsburyPLC/followers","following_url":"https://api.github.com/users/JSainsburyPLC/following{/other_user}","gists_url":"https://api.github.com/users/JSainsburyPLC/gists{/gist_id}","starred_url":"https://api.github.com/users/JSainsburyPLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSainsburyPLC/subscriptions","organizations_url":"https://api.github.com/users/JSainsburyPLC/orgs","repos_url":"https://api.github.com/users/JSainsburyPLC/repos","events_url":"https://api.github.com/users/JSainsburyPLC/events{/privacy}","received_events_url":"https://api.github.com/users/JSainsburyPLC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JSainsburyPLC/react-timelines","description":"React Timeline Library","fork":false,"url":"https://api.github.com/repos/JSainsburyPLC/react-timelines","forks_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/forks","keys_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/teams","hooks_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/hooks","issue_events_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues/events{/number}","events_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/events","assignees_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/assignees{/user}","branches_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/branches{/branch}","tags_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/tags","blobs_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/refs{/sha}","trees_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/statuses/{sha}","languages_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/languages","stargazers_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/stargazers","contributors_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/contributors","subscribers_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/subscribers","subscription_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/subscription","commits_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/commits{/sha}","git_commits_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/commits{/sha}","comments_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/comments{/number}","issue_comment_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues/comments{/number}","contents_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/contents/{+path}","compare_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/merges","archive_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/downloads","issues_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues{/number}","pulls_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls{/number}","milestones_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/milestones{/number}","notifications_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/labels{/name}","releases_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/releases{/id}","deployments_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/deployments","created_at":"2017-04-04T23:50:16Z","updated_at":"2017-05-06T00:35:05Z","pushed_at":"2017-05-12T09:32:33Z","git_url":"git://github.com/JSainsburyPLC/react-timelines.git","ssh_url":"git@github.com:JSainsburyPLC/react-timelines.git","clone_url":"https://github.com/JSainsburyPLC/react-timelines.git","svn_url":"https://github.com/JSainsburyPLC/react-timelines","homepage":"","size":365,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"JSainsburyPLC:master","ref":"master","sha":"233b26154dabb1a9953b732435f3fe89d319599d","user":{"login":"JSainsburyPLC","id":11195398,"avatar_url":"https://avatars1.githubusercontent.com/u/11195398?v=3","gravatar_id":"","url":"https://api.github.com/users/JSainsburyPLC","html_url":"https://github.com/JSainsburyPLC","followers_url":"https://api.github.com/users/JSainsburyPLC/followers","following_url":"https://api.github.com/users/JSainsburyPLC/following{/other_user}","gists_url":"https://api.github.com/users/JSainsburyPLC/gists{/gist_id}","starred_url":"https://api.github.com/users/JSainsburyPLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSainsburyPLC/subscriptions","organizations_url":"https://api.github.com/users/JSainsburyPLC/orgs","repos_url":"https://api.github.com/users/JSainsburyPLC/repos","events_url":"https://api.github.com/users/JSainsburyPLC/events{/privacy}","received_events_url":"https://api.github.com/users/JSainsburyPLC/received_events","type":"Organization","site_admin":false},"repo":{"id":87245981,"name":"react-timelines","full_name":"JSainsburyPLC/react-timelines","owner":{"login":"JSainsburyPLC","id":11195398,"avatar_url":"https://avatars1.githubusercontent.com/u/11195398?v=3","gravatar_id":"","url":"https://api.github.com/users/JSainsburyPLC","html_url":"https://github.com/JSainsburyPLC","followers_url":"https://api.github.com/users/JSainsburyPLC/followers","following_url":"https://api.github.com/users/JSainsburyPLC/following{/other_user}","gists_url":"https://api.github.com/users/JSainsburyPLC/gists{/gist_id}","starred_url":"https://api.github.com/users/JSainsburyPLC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSainsburyPLC/subscriptions","organizations_url":"https://api.github.com/users/JSainsburyPLC/orgs","repos_url":"https://api.github.com/users/JSainsburyPLC/repos","events_url":"https://api.github.com/users/JSainsburyPLC/events{/privacy}","received_events_url":"https://api.github.com/users/JSainsburyPLC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JSainsburyPLC/react-timelines","description":"React Timeline Library","fork":false,"url":"https://api.github.com/repos/JSainsburyPLC/react-timelines","forks_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/forks","keys_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/teams","hooks_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/hooks","issue_events_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues/events{/number}","events_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/events","assignees_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/assignees{/user}","branches_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/branches{/branch}","tags_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/tags","blobs_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/refs{/sha}","trees_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/statuses/{sha}","languages_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/languages","stargazers_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/stargazers","contributors_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/contributors","subscribers_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/subscribers","subscription_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/subscription","commits_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/commits{/sha}","git_commits_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/git/commits{/sha}","comments_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/comments{/number}","issue_comment_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues/comments{/number}","contents_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/contents/{+path}","compare_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/merges","archive_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/downloads","issues_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues{/number}","pulls_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls{/number}","milestones_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/milestones{/number}","notifications_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/labels{/name}","releases_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/releases{/id}","deployments_url":"https://api.github.com/repos/JSainsburyPLC/react-timelines/deployments","created_at":"2017-04-04T23:50:16Z","updated_at":"2017-05-06T00:35:05Z","pushed_at":"2017-05-12T09:32:33Z","git_url":"git://github.com/JSainsburyPLC/react-timelines.git","ssh_url":"git@github.com:JSainsburyPLC/react-timelines.git","clone_url":"https://github.com/JSainsburyPLC/react-timelines.git","svn_url":"https://github.com/JSainsburyPLC/react-timelines","homepage":"","size":365,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/24"},"html":{"href":"https://github.com/JSainsburyPLC/react-timelines/pull/24"},"issue":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues/24"},"comments":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/JSainsburyPLC/react-timelines/statuses/20b43883e6c7de66fbc7907bdba97e8ede5784c5"}}}}
{"actor":{"display_login":"WebSeed"}}