{"action":"created","comment":{"url":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/comments/91251535","pull_request_review_id":11758885,"id":91251535,"diff_hunk":"@@ -46,12 +46,18 @@ class ObjectProperties extends React.Component {\n     super(props);\n \n     this.state = {\n-      keyWidth: null,\n+      keyWidth: this.props.keyWidth || null,\n     };\n \n     this.keyWidthsIndex = {};\n   };\n \n+  componentWillReceiveProps = (nextProps) => {\n+    if (nextProps.keyWidth) {\n+      this.setState({keyWidth: nextProps.keyWidth});","path":"src/Components/ObjectProperties/ObjectProperties.js","position":null,"original_position":13,"commit_id":"7164ddf89f0442653d35c866ff8b028ff8278e47","original_commit_id":"267717fb7b42a71fcda5eb5465506c0d85463229","user":{"login":"XVincentX","id":1416224,"avatar_url":"https://avatars.githubusercontent.com/u/1416224?v=3","gravatar_id":"","url":"https://api.github.com/users/XVincentX","html_url":"https://github.com/XVincentX","followers_url":"https://api.github.com/users/XVincentX/followers","following_url":"https://api.github.com/users/XVincentX/following{/other_user}","gists_url":"https://api.github.com/users/XVincentX/gists{/gist_id}","starred_url":"https://api.github.com/users/XVincentX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XVincentX/subscriptions","organizations_url":"https://api.github.com/users/XVincentX/orgs","repos_url":"https://api.github.com/users/XVincentX/repos","events_url":"https://api.github.com/users/XVincentX/events{/privacy}","received_events_url":"https://api.github.com/users/XVincentX/received_events","type":"User","site_admin":false},"body":"I am afraid this is an anti pattern. You might potentially trigger 2 re-renders with this code. If you want to set an initial state, do that from the `constructor` function.","created_at":"2016-12-07T09:11:03Z","updated_at":"2016-12-07T09:12:15Z","html_url":"https://github.com/apiaryio/attributes-kit/pull/441#discussion_r91251535","pull_request_url":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/441","_links":{"self":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/comments/91251535"},"html":{"href":"https://github.com/apiaryio/attributes-kit/pull/441#discussion_r91251535"},"pull_request":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/441"}}},"pull_request":{"url":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/441","id":95939630,"html_url":"https://github.com/apiaryio/attributes-kit/pull/441","diff_url":"https://github.com/apiaryio/attributes-kit/pull/441.diff","patch_url":"https://github.com/apiaryio/attributes-kit/pull/441.patch","issue_url":"https://api.github.com/repos/apiaryio/attributes-kit/issues/441","number":441,"state":"open","locked":false,"title":"Fix keys alignment of Select (One Ofs) elements","user":{"login":"Baggz","id":95191,"avatar_url":"https://avatars.githubusercontent.com/u/95191?v=3","gravatar_id":"","url":"https://api.github.com/users/Baggz","html_url":"https://github.com/Baggz","followers_url":"https://api.github.com/users/Baggz/followers","following_url":"https://api.github.com/users/Baggz/following{/other_user}","gists_url":"https://api.github.com/users/Baggz/gists{/gist_id}","starred_url":"https://api.github.com/users/Baggz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baggz/subscriptions","organizations_url":"https://api.github.com/users/Baggz/orgs","repos_url":"https://api.github.com/users/Baggz/repos","events_url":"https://api.github.com/users/Baggz/events{/privacy}","received_events_url":"https://api.github.com/users/Baggz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-30T17:43:14Z","updated_at":"2016-12-07T09:12:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49c0900f28b63025b2e2b90566f3d15c704b6858","assignee":{"login":"XVincentX","id":1416224,"avatar_url":"https://avatars.githubusercontent.com/u/1416224?v=3","gravatar_id":"","url":"https://api.github.com/users/XVincentX","html_url":"https://github.com/XVincentX","followers_url":"https://api.github.com/users/XVincentX/followers","following_url":"https://api.github.com/users/XVincentX/following{/other_user}","gists_url":"https://api.github.com/users/XVincentX/gists{/gist_id}","starred_url":"https://api.github.com/users/XVincentX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XVincentX/subscriptions","organizations_url":"https://api.github.com/users/XVincentX/orgs","repos_url":"https://api.github.com/users/XVincentX/repos","events_url":"https://api.github.com/users/XVincentX/events{/privacy}","received_events_url":"https://api.github.com/users/XVincentX/received_events","type":"User","site_admin":false},"assignees":[{"login":"XVincentX","id":1416224,"avatar_url":"https://avatars.githubusercontent.com/u/1416224?v=3","gravatar_id":"","url":"https://api.github.com/users/XVincentX","html_url":"https://github.com/XVincentX","followers_url":"https://api.github.com/users/XVincentX/followers","following_url":"https://api.github.com/users/XVincentX/following{/other_user}","gists_url":"https://api.github.com/users/XVincentX/gists{/gist_id}","starred_url":"https://api.github.com/users/XVincentX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XVincentX/subscriptions","organizations_url":"https://api.github.com/users/XVincentX/orgs","repos_url":"https://api.github.com/users/XVincentX/repos","events_url":"https://api.github.com/users/XVincentX/events{/privacy}","received_events_url":"https://api.github.com/users/XVincentX/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/441/commits","review_comments_url":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/441/comments","review_comment_url":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apiaryio/attributes-kit/issues/441/comments","statuses_url":"https://api.github.com/repos/apiaryio/attributes-kit/statuses/7164ddf89f0442653d35c866ff8b028ff8278e47","head":{"label":"apiaryio:baggz/fix-alignment","ref":"baggz/fix-alignment","sha":"7164ddf89f0442653d35c866ff8b028ff8278e47","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":41431904,"name":"attributes-kit","full_name":"apiaryio/attributes-kit","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/attributes-kit","description":"Attributes Kit helps you with rendering MSON.","fork":false,"url":"https://api.github.com/repos/apiaryio/attributes-kit","forks_url":"https://api.github.com/repos/apiaryio/attributes-kit/forks","keys_url":"https://api.github.com/repos/apiaryio/attributes-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/attributes-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/attributes-kit/teams","hooks_url":"https://api.github.com/repos/apiaryio/attributes-kit/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/attributes-kit/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/attributes-kit/events","assignees_url":"https://api.github.com/repos/apiaryio/attributes-kit/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/attributes-kit/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/attributes-kit/tags","blobs_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/attributes-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/attributes-kit/languages","stargazers_url":"https://api.github.com/repos/apiaryio/attributes-kit/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/attributes-kit/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/attributes-kit/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/attributes-kit/subscription","commits_url":"https://api.github.com/repos/apiaryio/attributes-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/attributes-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/attributes-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/attributes-kit/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/attributes-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/attributes-kit/merges","archive_url":"https://api.github.com/repos/apiaryio/attributes-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/attributes-kit/downloads","issues_url":"https://api.github.com/repos/apiaryio/attributes-kit/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/attributes-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/attributes-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/attributes-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/attributes-kit/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/attributes-kit/releases{/id}","deployments_url":"https://api.github.com/repos/apiaryio/attributes-kit/deployments","created_at":"2015-08-26T14:57:12Z","updated_at":"2016-11-14T04:42:59Z","pushed_at":"2016-12-01T12:57:08Z","git_url":"git://github.com/apiaryio/attributes-kit.git","ssh_url":"git@github.com:apiaryio/attributes-kit.git","clone_url":"https://github.com/apiaryio/attributes-kit.git","svn_url":"https://github.com/apiaryio/attributes-kit","homepage":"","size":1221,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":40,"forks":2,"open_issues":40,"watchers":25,"default_branch":"master"}},"base":{"label":"apiaryio:master","ref":"master","sha":"84218b306c05bbc89645f99cbf2802e9437c7c2a","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":41431904,"name":"attributes-kit","full_name":"apiaryio/attributes-kit","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/attributes-kit","description":"Attributes Kit helps you with rendering MSON.","fork":false,"url":"https://api.github.com/repos/apiaryio/attributes-kit","forks_url":"https://api.github.com/repos/apiaryio/attributes-kit/forks","keys_url":"https://api.github.com/repos/apiaryio/attributes-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/attributes-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/attributes-kit/teams","hooks_url":"https://api.github.com/repos/apiaryio/attributes-kit/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/attributes-kit/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/attributes-kit/events","assignees_url":"https://api.github.com/repos/apiaryio/attributes-kit/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/attributes-kit/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/attributes-kit/tags","blobs_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/attributes-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/attributes-kit/languages","stargazers_url":"https://api.github.com/repos/apiaryio/attributes-kit/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/attributes-kit/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/attributes-kit/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/attributes-kit/subscription","commits_url":"https://api.github.com/repos/apiaryio/attributes-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/attributes-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/attributes-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/attributes-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/attributes-kit/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/attributes-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/attributes-kit/merges","archive_url":"https://api.github.com/repos/apiaryio/attributes-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/attributes-kit/downloads","issues_url":"https://api.github.com/repos/apiaryio/attributes-kit/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/attributes-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/attributes-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/attributes-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/attributes-kit/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/attributes-kit/releases{/id}","deployments_url":"https://api.github.com/repos/apiaryio/attributes-kit/deployments","created_at":"2015-08-26T14:57:12Z","updated_at":"2016-11-14T04:42:59Z","pushed_at":"2016-12-01T12:57:08Z","git_url":"git://github.com/apiaryio/attributes-kit.git","ssh_url":"git@github.com:apiaryio/attributes-kit.git","clone_url":"https://github.com/apiaryio/attributes-kit.git","svn_url":"https://github.com/apiaryio/attributes-kit","homepage":"","size":1221,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":40,"forks":2,"open_issues":40,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/441"},"html":{"href":"https://github.com/apiaryio/attributes-kit/pull/441"},"issue":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/issues/441"},"comments":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/issues/441/comments"},"review_comments":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/441/comments"},"review_comment":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/pulls/441/commits"},"statuses":{"href":"https://api.github.com/repos/apiaryio/attributes-kit/statuses/7164ddf89f0442653d35c866ff8b028ff8278e47"}}}}
{"actor":{"display_login":"XVincentX"}}