{"action":"created","comment":{"url":"https://api.github.com/repos/Stigie/TitlesList/pulls/comments/197840288","pull_request_review_id":131662050,"id":197840288,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Nzg0MDI4OA==","diff_hunk":"@@ -0,0 +1,59 @@\n+import { observable, computed, action, runInAction } from 'mobx';\n+\n+class TitelListStore {\n+  @observable listOfTitles;\n+  @observable state;\n+  @observable inputText;\n+\n+  constructor() {\n+    this.state = \"done\"\n+    this.listOfTitles = [];\n+    this.inputText = \"\";\n+  }\n+  @action('load DATA')\n+  async loadData(searchText) {\n+    this.state = \"pending\";\n+    let url = \"https://chroniclingamerica.loc.gov/search/titles/results/?terms=\" + searchText + \"&format=json&page=1\";\n+    return fetch(url);\n+  }\n+  @action('click on submit, filter data')\n+  async clickOnsubmit(e) {\n+    e.preventDefault();\n+    let searchText = e.currentTarget.children.Search.value.toLowerCase();\n+    this.state = \"pending\";\n+    this.listOfTitles = [];\n+    try {\n+      this.listOfTitles = await this.loadData(searchText)","path":"src/store/index.js","position":26,"original_position":26,"commit_id":"8554dfe675e357ff60da9e8c8cc85877cc90d91a","original_commit_id":"8554dfe675e357ff60da9e8c8cc85877cc90d91a","user":{"login":"AlexeySemin","id":7592183,"node_id":"MDQ6VXNlcjc1OTIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/7592183?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexeySemin","html_url":"https://github.com/AlexeySemin","followers_url":"https://api.github.com/users/AlexeySemin/followers","following_url":"https://api.github.com/users/AlexeySemin/following{/other_user}","gists_url":"https://api.github.com/users/AlexeySemin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeySemin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeySemin/subscriptions","organizations_url":"https://api.github.com/users/AlexeySemin/orgs","repos_url":"https://api.github.com/users/AlexeySemin/repos","events_url":"https://api.github.com/users/AlexeySemin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeySemin/received_events","type":"User","site_admin":false},"body":"погугли про await - суть в том что тебе не надо использовать then","created_at":"2018-06-25T15:30:33Z","updated_at":"2018-06-25T15:30:33Z","html_url":"https://github.com/Stigie/TitlesList/pull/4#discussion_r197840288","pull_request_url":"https://api.github.com/repos/Stigie/TitlesList/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Stigie/TitlesList/pulls/comments/197840288"},"html":{"href":"https://github.com/Stigie/TitlesList/pull/4#discussion_r197840288"},"pull_request":{"href":"https://api.github.com/repos/Stigie/TitlesList/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Stigie/TitlesList/pulls/4","id":196918040,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2OTE4MDQw","html_url":"https://github.com/Stigie/TitlesList/pull/4","diff_url":"https://github.com/Stigie/TitlesList/pull/4.diff","patch_url":"https://github.com/Stigie/TitlesList/pull/4.patch","issue_url":"https://api.github.com/repos/Stigie/TitlesList/issues/4","number":4,"state":"open","locked":false,"title":"task#3","user":{"login":"Stigie","id":16289975,"node_id":"MDQ6VXNlcjE2Mjg5OTc1","avatar_url":"https://avatars1.githubusercontent.com/u/16289975?v=4","gravatar_id":"","url":"https://api.github.com/users/Stigie","html_url":"https://github.com/Stigie","followers_url":"https://api.github.com/users/Stigie/followers","following_url":"https://api.github.com/users/Stigie/following{/other_user}","gists_url":"https://api.github.com/users/Stigie/gists{/gist_id}","starred_url":"https://api.github.com/users/Stigie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stigie/subscriptions","organizations_url":"https://api.github.com/users/Stigie/orgs","repos_url":"https://api.github.com/users/Stigie/repos","events_url":"https://api.github.com/users/Stigie/events{/privacy}","received_events_url":"https://api.github.com/users/Stigie/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-23T19:51:43Z","updated_at":"2018-06-25T15:30:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11c82cbd593081532b695c50fc4fe3b29f830c50","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Stigie/TitlesList/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Stigie/TitlesList/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Stigie/TitlesList/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Stigie/TitlesList/issues/4/comments","statuses_url":"https://api.github.com/repos/Stigie/TitlesList/statuses/8554dfe675e357ff60da9e8c8cc85877cc90d91a","head":{"label":"Stigie:feature/api","ref":"feature/api","sha":"8554dfe675e357ff60da9e8c8cc85877cc90d91a","user":{"login":"Stigie","id":16289975,"node_id":"MDQ6VXNlcjE2Mjg5OTc1","avatar_url":"https://avatars1.githubusercontent.com/u/16289975?v=4","gravatar_id":"","url":"https://api.github.com/users/Stigie","html_url":"https://github.com/Stigie","followers_url":"https://api.github.com/users/Stigie/followers","following_url":"https://api.github.com/users/Stigie/following{/other_user}","gists_url":"https://api.github.com/users/Stigie/gists{/gist_id}","starred_url":"https://api.github.com/users/Stigie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stigie/subscriptions","organizations_url":"https://api.github.com/users/Stigie/orgs","repos_url":"https://api.github.com/users/Stigie/repos","events_url":"https://api.github.com/users/Stigie/events{/privacy}","received_events_url":"https://api.github.com/users/Stigie/received_events","type":"User","site_admin":false},"repo":{"id":138208132,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgyMDgxMzI=","name":"TitlesList","full_name":"Stigie/TitlesList","owner":{"login":"Stigie","id":16289975,"node_id":"MDQ6VXNlcjE2Mjg5OTc1","avatar_url":"https://avatars1.githubusercontent.com/u/16289975?v=4","gravatar_id":"","url":"https://api.github.com/users/Stigie","html_url":"https://github.com/Stigie","followers_url":"https://api.github.com/users/Stigie/followers","following_url":"https://api.github.com/users/Stigie/following{/other_user}","gists_url":"https://api.github.com/users/Stigie/gists{/gist_id}","starred_url":"https://api.github.com/users/Stigie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stigie/subscriptions","organizations_url":"https://api.github.com/users/Stigie/orgs","repos_url":"https://api.github.com/users/Stigie/repos","events_url":"https://api.github.com/users/Stigie/events{/privacy}","received_events_url":"https://api.github.com/users/Stigie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stigie/TitlesList","description":"Mercury-study-task3","fork":false,"url":"https://api.github.com/repos/Stigie/TitlesList","forks_url":"https://api.github.com/repos/Stigie/TitlesList/forks","keys_url":"https://api.github.com/repos/Stigie/TitlesList/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stigie/TitlesList/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stigie/TitlesList/teams","hooks_url":"https://api.github.com/repos/Stigie/TitlesList/hooks","issue_events_url":"https://api.github.com/repos/Stigie/TitlesList/issues/events{/number}","events_url":"https://api.github.com/repos/Stigie/TitlesList/events","assignees_url":"https://api.github.com/repos/Stigie/TitlesList/assignees{/user}","branches_url":"https://api.github.com/repos/Stigie/TitlesList/branches{/branch}","tags_url":"https://api.github.com/repos/Stigie/TitlesList/tags","blobs_url":"https://api.github.com/repos/Stigie/TitlesList/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stigie/TitlesList/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stigie/TitlesList/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stigie/TitlesList/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stigie/TitlesList/statuses/{sha}","languages_url":"https://api.github.com/repos/Stigie/TitlesList/languages","stargazers_url":"https://api.github.com/repos/Stigie/TitlesList/stargazers","contributors_url":"https://api.github.com/repos/Stigie/TitlesList/contributors","subscribers_url":"https://api.github.com/repos/Stigie/TitlesList/subscribers","subscription_url":"https://api.github.com/repos/Stigie/TitlesList/subscription","commits_url":"https://api.github.com/repos/Stigie/TitlesList/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stigie/TitlesList/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stigie/TitlesList/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stigie/TitlesList/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stigie/TitlesList/contents/{+path}","compare_url":"https://api.github.com/repos/Stigie/TitlesList/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stigie/TitlesList/merges","archive_url":"https://api.github.com/repos/Stigie/TitlesList/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stigie/TitlesList/downloads","issues_url":"https://api.github.com/repos/Stigie/TitlesList/issues{/number}","pulls_url":"https://api.github.com/repos/Stigie/TitlesList/pulls{/number}","milestones_url":"https://api.github.com/repos/Stigie/TitlesList/milestones{/number}","notifications_url":"https://api.github.com/repos/Stigie/TitlesList/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stigie/TitlesList/labels{/name}","releases_url":"https://api.github.com/repos/Stigie/TitlesList/releases{/id}","deployments_url":"https://api.github.com/repos/Stigie/TitlesList/deployments","created_at":"2018-06-21T18:31:50Z","updated_at":"2018-06-23T18:14:36Z","pushed_at":"2018-06-25T07:55:24Z","git_url":"git://github.com/Stigie/TitlesList.git","ssh_url":"git@github.com:Stigie/TitlesList.git","clone_url":"https://github.com/Stigie/TitlesList.git","svn_url":"https://github.com/Stigie/TitlesList","homepage":null,"size":262,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Stigie:develop","ref":"develop","sha":"8864fbe79c450cd510cc6757e2c9d8fed3b2d6e2","user":{"login":"Stigie","id":16289975,"node_id":"MDQ6VXNlcjE2Mjg5OTc1","avatar_url":"https://avatars1.githubusercontent.com/u/16289975?v=4","gravatar_id":"","url":"https://api.github.com/users/Stigie","html_url":"https://github.com/Stigie","followers_url":"https://api.github.com/users/Stigie/followers","following_url":"https://api.github.com/users/Stigie/following{/other_user}","gists_url":"https://api.github.com/users/Stigie/gists{/gist_id}","starred_url":"https://api.github.com/users/Stigie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stigie/subscriptions","organizations_url":"https://api.github.com/users/Stigie/orgs","repos_url":"https://api.github.com/users/Stigie/repos","events_url":"https://api.github.com/users/Stigie/events{/privacy}","received_events_url":"https://api.github.com/users/Stigie/received_events","type":"User","site_admin":false},"repo":{"id":138208132,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgyMDgxMzI=","name":"TitlesList","full_name":"Stigie/TitlesList","owner":{"login":"Stigie","id":16289975,"node_id":"MDQ6VXNlcjE2Mjg5OTc1","avatar_url":"https://avatars1.githubusercontent.com/u/16289975?v=4","gravatar_id":"","url":"https://api.github.com/users/Stigie","html_url":"https://github.com/Stigie","followers_url":"https://api.github.com/users/Stigie/followers","following_url":"https://api.github.com/users/Stigie/following{/other_user}","gists_url":"https://api.github.com/users/Stigie/gists{/gist_id}","starred_url":"https://api.github.com/users/Stigie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stigie/subscriptions","organizations_url":"https://api.github.com/users/Stigie/orgs","repos_url":"https://api.github.com/users/Stigie/repos","events_url":"https://api.github.com/users/Stigie/events{/privacy}","received_events_url":"https://api.github.com/users/Stigie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stigie/TitlesList","description":"Mercury-study-task3","fork":false,"url":"https://api.github.com/repos/Stigie/TitlesList","forks_url":"https://api.github.com/repos/Stigie/TitlesList/forks","keys_url":"https://api.github.com/repos/Stigie/TitlesList/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stigie/TitlesList/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stigie/TitlesList/teams","hooks_url":"https://api.github.com/repos/Stigie/TitlesList/hooks","issue_events_url":"https://api.github.com/repos/Stigie/TitlesList/issues/events{/number}","events_url":"https://api.github.com/repos/Stigie/TitlesList/events","assignees_url":"https://api.github.com/repos/Stigie/TitlesList/assignees{/user}","branches_url":"https://api.github.com/repos/Stigie/TitlesList/branches{/branch}","tags_url":"https://api.github.com/repos/Stigie/TitlesList/tags","blobs_url":"https://api.github.com/repos/Stigie/TitlesList/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stigie/TitlesList/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stigie/TitlesList/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stigie/TitlesList/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stigie/TitlesList/statuses/{sha}","languages_url":"https://api.github.com/repos/Stigie/TitlesList/languages","stargazers_url":"https://api.github.com/repos/Stigie/TitlesList/stargazers","contributors_url":"https://api.github.com/repos/Stigie/TitlesList/contributors","subscribers_url":"https://api.github.com/repos/Stigie/TitlesList/subscribers","subscription_url":"https://api.github.com/repos/Stigie/TitlesList/subscription","commits_url":"https://api.github.com/repos/Stigie/TitlesList/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stigie/TitlesList/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stigie/TitlesList/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stigie/TitlesList/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stigie/TitlesList/contents/{+path}","compare_url":"https://api.github.com/repos/Stigie/TitlesList/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stigie/TitlesList/merges","archive_url":"https://api.github.com/repos/Stigie/TitlesList/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stigie/TitlesList/downloads","issues_url":"https://api.github.com/repos/Stigie/TitlesList/issues{/number}","pulls_url":"https://api.github.com/repos/Stigie/TitlesList/pulls{/number}","milestones_url":"https://api.github.com/repos/Stigie/TitlesList/milestones{/number}","notifications_url":"https://api.github.com/repos/Stigie/TitlesList/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stigie/TitlesList/labels{/name}","releases_url":"https://api.github.com/repos/Stigie/TitlesList/releases{/id}","deployments_url":"https://api.github.com/repos/Stigie/TitlesList/deployments","created_at":"2018-06-21T18:31:50Z","updated_at":"2018-06-23T18:14:36Z","pushed_at":"2018-06-25T07:55:24Z","git_url":"git://github.com/Stigie/TitlesList.git","ssh_url":"git@github.com:Stigie/TitlesList.git","clone_url":"https://github.com/Stigie/TitlesList.git","svn_url":"https://github.com/Stigie/TitlesList","homepage":null,"size":262,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stigie/TitlesList/pulls/4"},"html":{"href":"https://github.com/Stigie/TitlesList/pull/4"},"issue":{"href":"https://api.github.com/repos/Stigie/TitlesList/issues/4"},"comments":{"href":"https://api.github.com/repos/Stigie/TitlesList/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Stigie/TitlesList/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Stigie/TitlesList/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Stigie/TitlesList/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Stigie/TitlesList/statuses/8554dfe675e357ff60da9e8c8cc85877cc90d91a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"AlexeySemin"}}