{"action":"created","comment":{"url":"https://api.github.com/repos/sujinleeme/babel-website/pulls/comments/223175842","pull_request_review_id":162249469,"id":223175842,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzE3NTg0Mg==","diff_hunk":"@@ -56,20 +56,22 @@ export default class ASTPanel extends React.Component<Props, State> {\n     return null;\n   }\n \n-  onOptionSettingCheck(option: string) {\n-    this.setState(prevState => ({\n-      astOption: {\n-        ...prevState.astOption,\n-        [option]: !prevState.astOption[option],\n-      },\n-    }));\n-\n-    this.onChangeJson(option);\n+  _onOptionSettingCheck(option: string) {\n+    this.setState(\n+      prevState => (\n+        {\n+          astOption: {\n+            ...prevState.astOption,\n+            [option]: !prevState.astOption[option],\n+          },\n+        },\n+        this._onChangeJson(option)","path":"js/repl/ASTPanel.js","position":68,"original_position":32,"commit_id":"2d8aba19a0d4d706f413b9194b72005a32cc6a7b","original_commit_id":"2d8aba19a0d4d706f413b9194b72005a32cc6a7b","user":{"login":"benevbright","id":916690,"node_id":"MDQ6VXNlcjkxNjY5MA==","avatar_url":"https://avatars3.githubusercontent.com/u/916690?v=4","gravatar_id":"","url":"https://api.github.com/users/benevbright","html_url":"https://github.com/benevbright","followers_url":"https://api.github.com/users/benevbright/followers","following_url":"https://api.github.com/users/benevbright/following{/other_user}","gists_url":"https://api.github.com/users/benevbright/gists{/gist_id}","starred_url":"https://api.github.com/users/benevbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benevbright/subscriptions","organizations_url":"https://api.github.com/users/benevbright/orgs","repos_url":"https://api.github.com/users/benevbright/repos","events_url":"https://api.github.com/users/benevbright/events{/privacy}","received_events_url":"https://api.github.com/users/benevbright/received_events","type":"User","site_admin":false},"body":"And there is also a chance this change is worse than the previous code. \r\n(If React has an optimization of reducing the number of `setState` call under the hood)","created_at":"2018-10-06T08:12:05Z","updated_at":"2018-10-06T08:12:06Z","html_url":"https://github.com/sujinleeme/babel-website/pull/1#discussion_r223175842","pull_request_url":"https://api.github.com/repos/sujinleeme/babel-website/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/sujinleeme/babel-website/pulls/comments/223175842"},"html":{"href":"https://github.com/sujinleeme/babel-website/pull/1#discussion_r223175842"},"pull_request":{"href":"https://api.github.com/repos/sujinleeme/babel-website/pulls/1"}},"in_reply_to_id":223175054},"pull_request":{"url":"https://api.github.com/repos/sujinleeme/babel-website/pulls/1","id":220679366,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNjc5MzY2","html_url":"https://github.com/sujinleeme/babel-website/pull/1","diff_url":"https://github.com/sujinleeme/babel-website/pull/1.diff","patch_url":"https://github.com/sujinleeme/babel-website/pull/1.patch","issue_url":"https://api.github.com/repos/sujinleeme/babel-website/issues/1","number":1,"state":"open","locked":false,"title":"Implementing AST options","user":{"login":"benevbright","id":916690,"node_id":"MDQ6VXNlcjkxNjY5MA==","avatar_url":"https://avatars3.githubusercontent.com/u/916690?v=4","gravatar_id":"","url":"https://api.github.com/users/benevbright","html_url":"https://github.com/benevbright","followers_url":"https://api.github.com/users/benevbright/followers","following_url":"https://api.github.com/users/benevbright/following{/other_user}","gists_url":"https://api.github.com/users/benevbright/gists{/gist_id}","starred_url":"https://api.github.com/users/benevbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benevbright/subscriptions","organizations_url":"https://api.github.com/users/benevbright/orgs","repos_url":"https://api.github.com/users/benevbright/repos","events_url":"https://api.github.com/users/benevbright/events{/privacy}","received_events_url":"https://api.github.com/users/benevbright/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-05T12:06:53Z","updated_at":"2018-10-06T08:12:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4eac525749fa333e5dad0ebdc74e98d6bd2c11c2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sujinleeme/babel-website/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sujinleeme/babel-website/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sujinleeme/babel-website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sujinleeme/babel-website/issues/1/comments","statuses_url":"https://api.github.com/repos/sujinleeme/babel-website/statuses/2d8aba19a0d4d706f413b9194b72005a32cc6a7b","head":{"label":"sujinleeme:ASTOptions","ref":"ASTOptions","sha":"2d8aba19a0d4d706f413b9194b72005a32cc6a7b","user":{"login":"sujinleeme","id":6011401,"node_id":"MDQ6VXNlcjYwMTE0MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6011401?v=4","gravatar_id":"","url":"https://api.github.com/users/sujinleeme","html_url":"https://github.com/sujinleeme","followers_url":"https://api.github.com/users/sujinleeme/followers","following_url":"https://api.github.com/users/sujinleeme/following{/other_user}","gists_url":"https://api.github.com/users/sujinleeme/gists{/gist_id}","starred_url":"https://api.github.com/users/sujinleeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sujinleeme/subscriptions","organizations_url":"https://api.github.com/users/sujinleeme/orgs","repos_url":"https://api.github.com/users/sujinleeme/repos","events_url":"https://api.github.com/users/sujinleeme/events{/privacy}","received_events_url":"https://api.github.com/users/sujinleeme/received_events","type":"User","site_admin":false},"repo":{"id":140831223,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA4MzEyMjM=","name":"babel-website","full_name":"sujinleeme/babel-website","private":false,"owner":{"login":"sujinleeme","id":6011401,"node_id":"MDQ6VXNlcjYwMTE0MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6011401?v=4","gravatar_id":"","url":"https://api.github.com/users/sujinleeme","html_url":"https://github.com/sujinleeme","followers_url":"https://api.github.com/users/sujinleeme/followers","following_url":"https://api.github.com/users/sujinleeme/following{/other_user}","gists_url":"https://api.github.com/users/sujinleeme/gists{/gist_id}","starred_url":"https://api.github.com/users/sujinleeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sujinleeme/subscriptions","organizations_url":"https://api.github.com/users/sujinleeme/orgs","repos_url":"https://api.github.com/users/sujinleeme/repos","events_url":"https://api.github.com/users/sujinleeme/events{/privacy}","received_events_url":"https://api.github.com/users/sujinleeme/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sujinleeme/babel-website","description":":globe_with_meridians: The Babel documentation website","fork":true,"url":"https://api.github.com/repos/sujinleeme/babel-website","forks_url":"https://api.github.com/repos/sujinleeme/babel-website/forks","keys_url":"https://api.github.com/repos/sujinleeme/babel-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sujinleeme/babel-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sujinleeme/babel-website/teams","hooks_url":"https://api.github.com/repos/sujinleeme/babel-website/hooks","issue_events_url":"https://api.github.com/repos/sujinleeme/babel-website/issues/events{/number}","events_url":"https://api.github.com/repos/sujinleeme/babel-website/events","assignees_url":"https://api.github.com/repos/sujinleeme/babel-website/assignees{/user}","branches_url":"https://api.github.com/repos/sujinleeme/babel-website/branches{/branch}","tags_url":"https://api.github.com/repos/sujinleeme/babel-website/tags","blobs_url":"https://api.github.com/repos/sujinleeme/babel-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sujinleeme/babel-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sujinleeme/babel-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/sujinleeme/babel-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sujinleeme/babel-website/statuses/{sha}","languages_url":"https://api.github.com/repos/sujinleeme/babel-website/languages","stargazers_url":"https://api.github.com/repos/sujinleeme/babel-website/stargazers","contributors_url":"https://api.github.com/repos/sujinleeme/babel-website/contributors","subscribers_url":"https://api.github.com/repos/sujinleeme/babel-website/subscribers","subscription_url":"https://api.github.com/repos/sujinleeme/babel-website/subscription","commits_url":"https://api.github.com/repos/sujinleeme/babel-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/sujinleeme/babel-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/sujinleeme/babel-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/sujinleeme/babel-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/sujinleeme/babel-website/contents/{+path}","compare_url":"https://api.github.com/repos/sujinleeme/babel-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sujinleeme/babel-website/merges","archive_url":"https://api.github.com/repos/sujinleeme/babel-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sujinleeme/babel-website/downloads","issues_url":"https://api.github.com/repos/sujinleeme/babel-website/issues{/number}","pulls_url":"https://api.github.com/repos/sujinleeme/babel-website/pulls{/number}","milestones_url":"https://api.github.com/repos/sujinleeme/babel-website/milestones{/number}","notifications_url":"https://api.github.com/repos/sujinleeme/babel-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sujinleeme/babel-website/labels{/name}","releases_url":"https://api.github.com/repos/sujinleeme/babel-website/releases{/id}","deployments_url":"https://api.github.com/repos/sujinleeme/babel-website/deployments","created_at":"2018-07-13T10:05:39Z","updated_at":"2018-10-04T05:36:08Z","pushed_at":"2018-10-06T07:13:15Z","git_url":"git://github.com/sujinleeme/babel-website.git","ssh_url":"git@github.com:sujinleeme/babel-website.git","clone_url":"https://github.com/sujinleeme/babel-website.git","svn_url":"https://github.com/sujinleeme/babel-website","homepage":"https://new.babeljs.io/docs/en/next/index.html","size":21233,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sujinleeme:AST","ref":"AST","sha":"7df9280b96aa74c5826912eec0f9dc510a4ffb97","user":{"login":"sujinleeme","id":6011401,"node_id":"MDQ6VXNlcjYwMTE0MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6011401?v=4","gravatar_id":"","url":"https://api.github.com/users/sujinleeme","html_url":"https://github.com/sujinleeme","followers_url":"https://api.github.com/users/sujinleeme/followers","following_url":"https://api.github.com/users/sujinleeme/following{/other_user}","gists_url":"https://api.github.com/users/sujinleeme/gists{/gist_id}","starred_url":"https://api.github.com/users/sujinleeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sujinleeme/subscriptions","organizations_url":"https://api.github.com/users/sujinleeme/orgs","repos_url":"https://api.github.com/users/sujinleeme/repos","events_url":"https://api.github.com/users/sujinleeme/events{/privacy}","received_events_url":"https://api.github.com/users/sujinleeme/received_events","type":"User","site_admin":false},"repo":{"id":140831223,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA4MzEyMjM=","name":"babel-website","full_name":"sujinleeme/babel-website","private":false,"owner":{"login":"sujinleeme","id":6011401,"node_id":"MDQ6VXNlcjYwMTE0MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6011401?v=4","gravatar_id":"","url":"https://api.github.com/users/sujinleeme","html_url":"https://github.com/sujinleeme","followers_url":"https://api.github.com/users/sujinleeme/followers","following_url":"https://api.github.com/users/sujinleeme/following{/other_user}","gists_url":"https://api.github.com/users/sujinleeme/gists{/gist_id}","starred_url":"https://api.github.com/users/sujinleeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sujinleeme/subscriptions","organizations_url":"https://api.github.com/users/sujinleeme/orgs","repos_url":"https://api.github.com/users/sujinleeme/repos","events_url":"https://api.github.com/users/sujinleeme/events{/privacy}","received_events_url":"https://api.github.com/users/sujinleeme/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sujinleeme/babel-website","description":":globe_with_meridians: The Babel documentation website","fork":true,"url":"https://api.github.com/repos/sujinleeme/babel-website","forks_url":"https://api.github.com/repos/sujinleeme/babel-website/forks","keys_url":"https://api.github.com/repos/sujinleeme/babel-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sujinleeme/babel-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sujinleeme/babel-website/teams","hooks_url":"https://api.github.com/repos/sujinleeme/babel-website/hooks","issue_events_url":"https://api.github.com/repos/sujinleeme/babel-website/issues/events{/number}","events_url":"https://api.github.com/repos/sujinleeme/babel-website/events","assignees_url":"https://api.github.com/repos/sujinleeme/babel-website/assignees{/user}","branches_url":"https://api.github.com/repos/sujinleeme/babel-website/branches{/branch}","tags_url":"https://api.github.com/repos/sujinleeme/babel-website/tags","blobs_url":"https://api.github.com/repos/sujinleeme/babel-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sujinleeme/babel-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sujinleeme/babel-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/sujinleeme/babel-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sujinleeme/babel-website/statuses/{sha}","languages_url":"https://api.github.com/repos/sujinleeme/babel-website/languages","stargazers_url":"https://api.github.com/repos/sujinleeme/babel-website/stargazers","contributors_url":"https://api.github.com/repos/sujinleeme/babel-website/contributors","subscribers_url":"https://api.github.com/repos/sujinleeme/babel-website/subscribers","subscription_url":"https://api.github.com/repos/sujinleeme/babel-website/subscription","commits_url":"https://api.github.com/repos/sujinleeme/babel-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/sujinleeme/babel-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/sujinleeme/babel-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/sujinleeme/babel-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/sujinleeme/babel-website/contents/{+path}","compare_url":"https://api.github.com/repos/sujinleeme/babel-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sujinleeme/babel-website/merges","archive_url":"https://api.github.com/repos/sujinleeme/babel-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sujinleeme/babel-website/downloads","issues_url":"https://api.github.com/repos/sujinleeme/babel-website/issues{/number}","pulls_url":"https://api.github.com/repos/sujinleeme/babel-website/pulls{/number}","milestones_url":"https://api.github.com/repos/sujinleeme/babel-website/milestones{/number}","notifications_url":"https://api.github.com/repos/sujinleeme/babel-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sujinleeme/babel-website/labels{/name}","releases_url":"https://api.github.com/repos/sujinleeme/babel-website/releases{/id}","deployments_url":"https://api.github.com/repos/sujinleeme/babel-website/deployments","created_at":"2018-07-13T10:05:39Z","updated_at":"2018-10-04T05:36:08Z","pushed_at":"2018-10-06T07:13:15Z","git_url":"git://github.com/sujinleeme/babel-website.git","ssh_url":"git@github.com:sujinleeme/babel-website.git","clone_url":"https://github.com/sujinleeme/babel-website.git","svn_url":"https://github.com/sujinleeme/babel-website","homepage":"https://new.babeljs.io/docs/en/next/index.html","size":21233,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sujinleeme/babel-website/pulls/1"},"html":{"href":"https://github.com/sujinleeme/babel-website/pull/1"},"issue":{"href":"https://api.github.com/repos/sujinleeme/babel-website/issues/1"},"comments":{"href":"https://api.github.com/repos/sujinleeme/babel-website/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sujinleeme/babel-website/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sujinleeme/babel-website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sujinleeme/babel-website/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sujinleeme/babel-website/statuses/2d8aba19a0d4d706f413b9194b72005a32cc6a7b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"benevbright"}}