{"action":"created","comment":{"url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/comments/302461503","pull_request_review_id":260592715,"id":302461503,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMjQ2MTUwMw==","diff_hunk":"@@ -1,12 +1,142 @@\n import React from 'react';\n import './App.css';\n+import PostList from './components/PostList';\n+import { getPostsWithUsers } from './components/loadingData';\n \n-function App() {\n-  return (\n-    <div className=\"App\">\n-      <h1>Dynamic list of posts</h1>\n-    </div>\n-  );\n+class App extends React.Component {\n+  state = {\n+    renderButton: true,\n+    postsWhithUser: [],\n+    filter: [],\n+  }\n+\n+  handleClick = () => {\n+    const loadButton = document.querySelector('.load-button');\n+    loadButton.disabled = true;\n+    loadButton.textContent = 'Loading...';","path":"src/App.js","position":22,"original_position":22,"commit_id":"6be3cf7c8122ce39bcd2bb54fec612aa8ed27367","original_commit_id":"6be3cf7c8122ce39bcd2bb54fec612aa8ed27367","user":{"login":"OlgaLyubicheva","id":50749802,"node_id":"MDQ6VXNlcjUwNzQ5ODAy","avatar_url":"https://avatars1.githubusercontent.com/u/50749802?v=4","gravatar_id":"","url":"https://api.github.com/users/OlgaLyubicheva","html_url":"https://github.com/OlgaLyubicheva","followers_url":"https://api.github.com/users/OlgaLyubicheva/followers","following_url":"https://api.github.com/users/OlgaLyubicheva/following{/other_user}","gists_url":"https://api.github.com/users/OlgaLyubicheva/gists{/gist_id}","starred_url":"https://api.github.com/users/OlgaLyubicheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlgaLyubicheva/subscriptions","organizations_url":"https://api.github.com/users/OlgaLyubicheva/orgs","repos_url":"https://api.github.com/users/OlgaLyubicheva/repos","events_url":"https://api.github.com/users/OlgaLyubicheva/events{/privacy}","received_events_url":"https://api.github.com/users/OlgaLyubicheva/received_events","type":"User","site_admin":false},"body":"в прошлом задании мне сделали замечание, что не нужно все подряд пихать в стейт. Тогда я не понимаю в каком случаи это лишнее, а когда не? В данном случаи мне кажется, что disabled там лишнее, оно используется один раз. Как и название кнопки. ","created_at":"2019-07-11T09:59:19Z","updated_at":"2019-07-11T09:59:19Z","html_url":"https://github.com/mate-academy/react_dynamic-list-of-posts/pull/37#discussion_r302461503","pull_request_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/37","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/comments/302461503"},"html":{"href":"https://github.com/mate-academy/react_dynamic-list-of-posts/pull/37#discussion_r302461503"},"pull_request":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/37"}},"in_reply_to_id":302142714},"pull_request":{"url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/37","id":296199841,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk2MTk5ODQx","html_url":"https://github.com/mate-academy/react_dynamic-list-of-posts/pull/37","diff_url":"https://github.com/mate-academy/react_dynamic-list-of-posts/pull/37.diff","patch_url":"https://github.com/mate-academy/react_dynamic-list-of-posts/pull/37.patch","issue_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/issues/37","number":37,"state":"open","locked":false,"title":"fs_may19_olha","user":{"login":"OlgaLyubicheva","id":50749802,"node_id":"MDQ6VXNlcjUwNzQ5ODAy","avatar_url":"https://avatars1.githubusercontent.com/u/50749802?v=4","gravatar_id":"","url":"https://api.github.com/users/OlgaLyubicheva","html_url":"https://github.com/OlgaLyubicheva","followers_url":"https://api.github.com/users/OlgaLyubicheva/followers","following_url":"https://api.github.com/users/OlgaLyubicheva/following{/other_user}","gists_url":"https://api.github.com/users/OlgaLyubicheva/gists{/gist_id}","starred_url":"https://api.github.com/users/OlgaLyubicheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlgaLyubicheva/subscriptions","organizations_url":"https://api.github.com/users/OlgaLyubicheva/orgs","repos_url":"https://api.github.com/users/OlgaLyubicheva/repos","events_url":"https://api.github.com/users/OlgaLyubicheva/events{/privacy}","received_events_url":"https://api.github.com/users/OlgaLyubicheva/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-07-10T14:26:57Z","updated_at":"2019-07-11T09:59:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cd298931bffbfedfe901ffc4c75218ad1dd093a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/37/commits","review_comments_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/37/comments","review_comment_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/issues/37/comments","statuses_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/statuses/6be3cf7c8122ce39bcd2bb54fec612aa8ed27367","head":{"label":"OlgaLyubicheva:fs_may19_olha","ref":"fs_may19_olha","sha":"6be3cf7c8122ce39bcd2bb54fec612aa8ed27367","user":{"login":"OlgaLyubicheva","id":50749802,"node_id":"MDQ6VXNlcjUwNzQ5ODAy","avatar_url":"https://avatars1.githubusercontent.com/u/50749802?v=4","gravatar_id":"","url":"https://api.github.com/users/OlgaLyubicheva","html_url":"https://github.com/OlgaLyubicheva","followers_url":"https://api.github.com/users/OlgaLyubicheva/followers","following_url":"https://api.github.com/users/OlgaLyubicheva/following{/other_user}","gists_url":"https://api.github.com/users/OlgaLyubicheva/gists{/gist_id}","starred_url":"https://api.github.com/users/OlgaLyubicheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlgaLyubicheva/subscriptions","organizations_url":"https://api.github.com/users/OlgaLyubicheva/orgs","repos_url":"https://api.github.com/users/OlgaLyubicheva/repos","events_url":"https://api.github.com/users/OlgaLyubicheva/events{/privacy}","received_events_url":"https://api.github.com/users/OlgaLyubicheva/received_events","type":"User","site_admin":false},"repo":{"id":195836698,"node_id":"MDEwOlJlcG9zaXRvcnkxOTU4MzY2OTg=","name":"react_dynamic-list-of-posts","full_name":"OlgaLyubicheva/react_dynamic-list-of-posts","private":false,"owner":{"login":"OlgaLyubicheva","id":50749802,"node_id":"MDQ6VXNlcjUwNzQ5ODAy","avatar_url":"https://avatars1.githubusercontent.com/u/50749802?v=4","gravatar_id":"","url":"https://api.github.com/users/OlgaLyubicheva","html_url":"https://github.com/OlgaLyubicheva","followers_url":"https://api.github.com/users/OlgaLyubicheva/followers","following_url":"https://api.github.com/users/OlgaLyubicheva/following{/other_user}","gists_url":"https://api.github.com/users/OlgaLyubicheva/gists{/gist_id}","starred_url":"https://api.github.com/users/OlgaLyubicheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlgaLyubicheva/subscriptions","organizations_url":"https://api.github.com/users/OlgaLyubicheva/orgs","repos_url":"https://api.github.com/users/OlgaLyubicheva/repos","events_url":"https://api.github.com/users/OlgaLyubicheva/events{/privacy}","received_events_url":"https://api.github.com/users/OlgaLyubicheva/received_events","type":"User","site_admin":false},"html_url":"https://github.com/OlgaLyubicheva/react_dynamic-list-of-posts","description":null,"fork":true,"url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts","forks_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/forks","keys_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/teams","hooks_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/hooks","issue_events_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/issues/events{/number}","events_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/events","assignees_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/assignees{/user}","branches_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/branches{/branch}","tags_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/tags","blobs_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/git/refs{/sha}","trees_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/statuses/{sha}","languages_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/languages","stargazers_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/stargazers","contributors_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/contributors","subscribers_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/subscribers","subscription_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/subscription","commits_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/commits{/sha}","git_commits_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/git/commits{/sha}","comments_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/comments{/number}","issue_comment_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/issues/comments{/number}","contents_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/contents/{+path}","compare_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/merges","archive_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/downloads","issues_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/issues{/number}","pulls_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/pulls{/number}","milestones_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/milestones{/number}","notifications_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/labels{/name}","releases_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/releases{/id}","deployments_url":"https://api.github.com/repos/OlgaLyubicheva/react_dynamic-list-of-posts/deployments","created_at":"2019-07-08T15:08:44Z","updated_at":"2019-07-08T15:08:47Z","pushed_at":"2019-07-10T14:23:14Z","git_url":"git://github.com/OlgaLyubicheva/react_dynamic-list-of-posts.git","ssh_url":"git@github.com:OlgaLyubicheva/react_dynamic-list-of-posts.git","clone_url":"https://github.com/OlgaLyubicheva/react_dynamic-list-of-posts.git","svn_url":"https://github.com/OlgaLyubicheva/react_dynamic-list-of-posts","homepage":null,"size":167,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mate-academy:master","ref":"master","sha":"bd4d08483c0b6c5d3b9e8bdceb8c6354f72d885b","user":{"login":"mate-academy","id":28379899,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4Mzc5ODk5","avatar_url":"https://avatars1.githubusercontent.com/u/28379899?v=4","gravatar_id":"","url":"https://api.github.com/users/mate-academy","html_url":"https://github.com/mate-academy","followers_url":"https://api.github.com/users/mate-academy/followers","following_url":"https://api.github.com/users/mate-academy/following{/other_user}","gists_url":"https://api.github.com/users/mate-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/mate-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mate-academy/subscriptions","organizations_url":"https://api.github.com/users/mate-academy/orgs","repos_url":"https://api.github.com/users/mate-academy/repos","events_url":"https://api.github.com/users/mate-academy/events{/privacy}","received_events_url":"https://api.github.com/users/mate-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":190025473,"node_id":"MDEwOlJlcG9zaXRvcnkxOTAwMjU0NzM=","name":"react_dynamic-list-of-posts","full_name":"mate-academy/react_dynamic-list-of-posts","private":false,"owner":{"login":"mate-academy","id":28379899,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4Mzc5ODk5","avatar_url":"https://avatars1.githubusercontent.com/u/28379899?v=4","gravatar_id":"","url":"https://api.github.com/users/mate-academy","html_url":"https://github.com/mate-academy","followers_url":"https://api.github.com/users/mate-academy/followers","following_url":"https://api.github.com/users/mate-academy/following{/other_user}","gists_url":"https://api.github.com/users/mate-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/mate-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mate-academy/subscriptions","organizations_url":"https://api.github.com/users/mate-academy/orgs","repos_url":"https://api.github.com/users/mate-academy/repos","events_url":"https://api.github.com/users/mate-academy/events{/privacy}","received_events_url":"https://api.github.com/users/mate-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mate-academy/react_dynamic-list-of-posts","description":null,"fork":false,"url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts","forks_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/forks","keys_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/teams","hooks_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/hooks","issue_events_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/issues/events{/number}","events_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/events","assignees_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/assignees{/user}","branches_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/branches{/branch}","tags_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/tags","blobs_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/git/refs{/sha}","trees_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/statuses/{sha}","languages_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/languages","stargazers_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/stargazers","contributors_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/contributors","subscribers_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/subscribers","subscription_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/subscription","commits_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/commits{/sha}","git_commits_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/git/commits{/sha}","comments_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/comments{/number}","issue_comment_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/issues/comments{/number}","contents_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/contents/{+path}","compare_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/merges","archive_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/downloads","issues_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/issues{/number}","pulls_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls{/number}","milestones_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/milestones{/number}","notifications_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/labels{/name}","releases_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/releases{/id}","deployments_url":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/deployments","created_at":"2019-06-03T14:49:10Z","updated_at":"2019-07-03T07:02:36Z","pushed_at":"2019-07-11T08:51:15Z","git_url":"git://github.com/mate-academy/react_dynamic-list-of-posts.git","ssh_url":"git@github.com:mate-academy/react_dynamic-list-of-posts.git","clone_url":"https://github.com/mate-academy/react_dynamic-list-of-posts.git","svn_url":"https://github.com/mate-academy/react_dynamic-list-of-posts","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":36,"license":null,"forks":51,"open_issues":36,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/37"},"html":{"href":"https://github.com/mate-academy/react_dynamic-list-of-posts/pull/37"},"issue":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/issues/37"},"comments":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/mate-academy/react_dynamic-list-of-posts/statuses/6be3cf7c8122ce39bcd2bb54fec612aa8ed27367"}},"author_association":"NONE"}}
{"actor":{"display_login":"OlgaLyubicheva"}}