{"action":"created","comment":{"url":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/comments/244039194","pull_request_review_id":187949534,"id":244039194,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDAzOTE5NA==","diff_hunk":"@@ -34,16 +38,19 @@ export class SourceCode extends React.PureComponent {\n       height: 'auto',\n       gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'],\n     });\n-    this.foldBlockStartLines.forEach((lineNumber) => {\n-      editor.foldCode(CodeMirror.Pos(lineNumber, 0));\n-    });\n-    this.importantLines.forEach((lineNumber) => {\n-      editor.addLineClass(lineNumber, 'background', 'CodeMirror-important-line');\n-    });\n+    this.applySpecialCodeOptions();\n+  }\n+\n+  componentDidUpdate() {\n+    const sourceCode = this.prepareSourceCode();","path":"packages/dx-demo-shell/src/demo-viewer/source-code.jsx","position":41,"original_position":41,"commit_id":"839e1642ed9adfa0af0941c7b0dc0e075364b2c4","original_commit_id":"839e1642ed9adfa0af0941c7b0dc0e075364b2c4","user":{"login":"DmitryBogomolov","id":2501124,"node_id":"MDQ6VXNlcjI1MDExMjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2501124?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryBogomolov","html_url":"https://github.com/DmitryBogomolov","followers_url":"https://api.github.com/users/DmitryBogomolov/followers","following_url":"https://api.github.com/users/DmitryBogomolov/following{/other_user}","gists_url":"https://api.github.com/users/DmitryBogomolov/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryBogomolov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryBogomolov/subscriptions","organizations_url":"https://api.github.com/users/DmitryBogomolov/orgs","repos_url":"https://api.github.com/users/DmitryBogomolov/repos","events_url":"https://api.github.com/users/DmitryBogomolov/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryBogomolov/received_events","type":"User","site_admin":false},"body":"`prepareSourceCode` is called twice after component is mount - in `render` and here.","created_at":"2018-12-26T19:33:57Z","updated_at":"2018-12-26T19:33:57Z","html_url":"https://github.com/DevExpress/devextreme-reactive/pull/1726#discussion_r244039194","pull_request_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/1726","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/comments/244039194"},"html":{"href":"https://github.com/DevExpress/devextreme-reactive/pull/1726#discussion_r244039194"},"pull_request":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/1726"}}},"pull_request":{"url":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/1726","id":240524433,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNTI0NDMz","html_url":"https://github.com/DevExpress/devextreme-reactive/pull/1726","diff_url":"https://github.com/DevExpress/devextreme-reactive/pull/1726.diff","patch_url":"https://github.com/DevExpress/devextreme-reactive/pull/1726.patch","issue_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/issues/1726","number":1726,"state":"open","locked":false,"title":"chore(site): beautify source code","user":{"login":"MaximKudriavtsev","id":15093892,"node_id":"MDQ6VXNlcjE1MDkzODky","avatar_url":"https://avatars2.githubusercontent.com/u/15093892?v=4","gravatar_id":"","url":"https://api.github.com/users/MaximKudriavtsev","html_url":"https://github.com/MaximKudriavtsev","followers_url":"https://api.github.com/users/MaximKudriavtsev/followers","following_url":"https://api.github.com/users/MaximKudriavtsev/following{/other_user}","gists_url":"https://api.github.com/users/MaximKudriavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximKudriavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximKudriavtsev/subscriptions","organizations_url":"https://api.github.com/users/MaximKudriavtsev/orgs","repos_url":"https://api.github.com/users/MaximKudriavtsev/repos","events_url":"https://api.github.com/users/MaximKudriavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximKudriavtsev/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-21T16:47:47Z","updated_at":"2018-12-26T19:33:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b83eee9f49eef944226d52fef13e7eec21e5ef2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/1726/commits","review_comments_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/1726/comments","review_comment_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/issues/1726/comments","statuses_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/statuses/839e1642ed9adfa0af0941c7b0dc0e075364b2c4","head":{"label":"MaximKudriavtsev:beautify-source-code","ref":"beautify-source-code","sha":"839e1642ed9adfa0af0941c7b0dc0e075364b2c4","user":{"login":"MaximKudriavtsev","id":15093892,"node_id":"MDQ6VXNlcjE1MDkzODky","avatar_url":"https://avatars2.githubusercontent.com/u/15093892?v=4","gravatar_id":"","url":"https://api.github.com/users/MaximKudriavtsev","html_url":"https://github.com/MaximKudriavtsev","followers_url":"https://api.github.com/users/MaximKudriavtsev/followers","following_url":"https://api.github.com/users/MaximKudriavtsev/following{/other_user}","gists_url":"https://api.github.com/users/MaximKudriavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximKudriavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximKudriavtsev/subscriptions","organizations_url":"https://api.github.com/users/MaximKudriavtsev/orgs","repos_url":"https://api.github.com/users/MaximKudriavtsev/repos","events_url":"https://api.github.com/users/MaximKudriavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximKudriavtsev/received_events","type":"User","site_admin":false},"repo":{"id":138300199,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgzMDAxOTk=","name":"devextreme-reactive","full_name":"MaximKudriavtsev/devextreme-reactive","private":false,"owner":{"login":"MaximKudriavtsev","id":15093892,"node_id":"MDQ6VXNlcjE1MDkzODky","avatar_url":"https://avatars2.githubusercontent.com/u/15093892?v=4","gravatar_id":"","url":"https://api.github.com/users/MaximKudriavtsev","html_url":"https://github.com/MaximKudriavtsev","followers_url":"https://api.github.com/users/MaximKudriavtsev/followers","following_url":"https://api.github.com/users/MaximKudriavtsev/following{/other_user}","gists_url":"https://api.github.com/users/MaximKudriavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximKudriavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximKudriavtsev/subscriptions","organizations_url":"https://api.github.com/users/MaximKudriavtsev/orgs","repos_url":"https://api.github.com/users/MaximKudriavtsev/repos","events_url":"https://api.github.com/users/MaximKudriavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximKudriavtsev/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MaximKudriavtsev/devextreme-reactive","description":"DevExtreme Reactive Components","fork":true,"url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive","forks_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/forks","keys_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/teams","hooks_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/hooks","issue_events_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/issues/events{/number}","events_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/events","assignees_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/assignees{/user}","branches_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/branches{/branch}","tags_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/tags","blobs_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/statuses/{sha}","languages_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/languages","stargazers_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/stargazers","contributors_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/contributors","subscribers_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/subscribers","subscription_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/subscription","commits_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/contents/{+path}","compare_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/merges","archive_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/downloads","issues_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/issues{/number}","pulls_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/pulls{/number}","milestones_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/milestones{/number}","notifications_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/labels{/name}","releases_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/releases{/id}","deployments_url":"https://api.github.com/repos/MaximKudriavtsev/devextreme-reactive/deployments","created_at":"2018-06-22T12:27:36Z","updated_at":"2018-12-26T11:10:00Z","pushed_at":"2018-12-26T15:10:47Z","git_url":"git://github.com/MaximKudriavtsev/devextreme-reactive.git","ssh_url":"git@github.com:MaximKudriavtsev/devextreme-reactive.git","clone_url":"https://github.com/MaximKudriavtsev/devextreme-reactive.git","svn_url":"https://github.com/MaximKudriavtsev/devextreme-reactive","homepage":"https://devexpress.github.io/devextreme-reactive/","size":41039,"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":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DevExpress:master","ref":"master","sha":"68db205d416596ea7e2f03893b11598d790296b2","user":{"login":"DevExpress","id":4243232,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDMyMzI=","avatar_url":"https://avatars0.githubusercontent.com/u/4243232?v=4","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"repo":{"id":85281744,"node_id":"MDEwOlJlcG9zaXRvcnk4NTI4MTc0NA==","name":"devextreme-reactive","full_name":"DevExpress/devextreme-reactive","private":false,"owner":{"login":"DevExpress","id":4243232,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNDMyMzI=","avatar_url":"https://avatars0.githubusercontent.com/u/4243232?v=4","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DevExpress/devextreme-reactive","description":"Business React components for Bootstrap and Material-UI","fork":false,"url":"https://api.github.com/repos/DevExpress/devextreme-reactive","forks_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/forks","keys_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/teams","hooks_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/hooks","issue_events_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/issues/events{/number}","events_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/events","assignees_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/assignees{/user}","branches_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/branches{/branch}","tags_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/tags","blobs_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/statuses/{sha}","languages_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/languages","stargazers_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/stargazers","contributors_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/contributors","subscribers_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/subscribers","subscription_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/subscription","commits_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/contents/{+path}","compare_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/merges","archive_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/downloads","issues_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/issues{/number}","pulls_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls{/number}","milestones_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/milestones{/number}","notifications_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/labels{/name}","releases_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/releases{/id}","deployments_url":"https://api.github.com/repos/DevExpress/devextreme-reactive/deployments","created_at":"2017-03-17T07:10:12Z","updated_at":"2018-12-26T10:37:09Z","pushed_at":"2018-12-26T15:10:49Z","git_url":"git://github.com/DevExpress/devextreme-reactive.git","ssh_url":"git@github.com:DevExpress/devextreme-reactive.git","clone_url":"https://github.com/DevExpress/devextreme-reactive.git","svn_url":"https://github.com/DevExpress/devextreme-reactive","homepage":"https://devexpress.github.io/devextreme-reactive/","size":58317,"stargazers_count":799,"watchers_count":799,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":133,"mirror_url":null,"archived":false,"open_issues_count":68,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":133,"open_issues":68,"watchers":799,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/1726"},"html":{"href":"https://github.com/DevExpress/devextreme-reactive/pull/1726"},"issue":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/issues/1726"},"comments":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/issues/1726/comments"},"review_comments":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/1726/comments"},"review_comment":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/pulls/1726/commits"},"statuses":{"href":"https://api.github.com/repos/DevExpress/devextreme-reactive/statuses/839e1642ed9adfa0af0941c7b0dc0e075364b2c4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"DmitryBogomolov"}}