{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/velopert/learning-react/pulls/16","id":207906385,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3OTA2Mzg1","html_url":"https://github.com/velopert/learning-react/pull/16","diff_url":"https://github.com/velopert/learning-react/pull/16.diff","patch_url":"https://github.com/velopert/learning-react/pull/16.patch","issue_url":"https://api.github.com/repos/velopert/learning-react/issues/16","number":16,"state":"open","locked":false,"title":"챕터 14쪽 todo-list에서 remove시에 toggle 문제점 해결","user":{"login":"Produck","id":17894639,"node_id":"MDQ6VXNlcjE3ODk0NjM5","avatar_url":"https://avatars0.githubusercontent.com/u/17894639?v=4","gravatar_id":"","url":"https://api.github.com/users/Produck","html_url":"https://github.com/Produck","followers_url":"https://api.github.com/users/Produck/followers","following_url":"https://api.github.com/users/Produck/following{/other_user}","gists_url":"https://api.github.com/users/Produck/gists{/gist_id}","starred_url":"https://api.github.com/users/Produck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Produck/subscriptions","organizations_url":"https://api.github.com/users/Produck/orgs","repos_url":"https://api.github.com/users/Produck/repos","events_url":"https://api.github.com/users/Produck/events{/privacy}","received_events_url":"https://api.github.com/users/Produck/received_events","type":"User","site_admin":false},"body":"- 삭제시 index랑 id랑 맞지 않은 점 \r\n- toggle 부분에서도 삭제 이후 index랑 id가 맞지 않는 점\r\n\r\nid를 넘겨주는데 해당 id를 index로 사용하는 논리 문제가 있어서 id를 받아 index를 구하도록 했습니다.\r\nMap의 findIndex 메소드로 id와 index 매치 시켜주는 코드를 넣었습니다.\r\n","created_at":"2018-08-13T08:40:40Z","updated_at":"2018-08-13T08:40:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/velopert/learning-react/pulls/16/commits","review_comments_url":"https://api.github.com/repos/velopert/learning-react/pulls/16/comments","review_comment_url":"https://api.github.com/repos/velopert/learning-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/velopert/learning-react/issues/16/comments","statuses_url":"https://api.github.com/repos/velopert/learning-react/statuses/08b0547d00110fd1cac1402cc59e7fb9acb91808","head":{"label":"Produck:master","ref":"master","sha":"08b0547d00110fd1cac1402cc59e7fb9acb91808","user":{"login":"Produck","id":17894639,"node_id":"MDQ6VXNlcjE3ODk0NjM5","avatar_url":"https://avatars0.githubusercontent.com/u/17894639?v=4","gravatar_id":"","url":"https://api.github.com/users/Produck","html_url":"https://github.com/Produck","followers_url":"https://api.github.com/users/Produck/followers","following_url":"https://api.github.com/users/Produck/following{/other_user}","gists_url":"https://api.github.com/users/Produck/gists{/gist_id}","starred_url":"https://api.github.com/users/Produck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Produck/subscriptions","organizations_url":"https://api.github.com/users/Produck/orgs","repos_url":"https://api.github.com/users/Produck/repos","events_url":"https://api.github.com/users/Produck/events{/privacy}","received_events_url":"https://api.github.com/users/Produck/received_events","type":"User","site_admin":false},"repo":{"id":144550129,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ1NTAxMjk=","name":"learning-react","full_name":"Produck/learning-react","owner":{"login":"Produck","id":17894639,"node_id":"MDQ6VXNlcjE3ODk0NjM5","avatar_url":"https://avatars0.githubusercontent.com/u/17894639?v=4","gravatar_id":"","url":"https://api.github.com/users/Produck","html_url":"https://github.com/Produck","followers_url":"https://api.github.com/users/Produck/followers","following_url":"https://api.github.com/users/Produck/following{/other_user}","gists_url":"https://api.github.com/users/Produck/gists{/gist_id}","starred_url":"https://api.github.com/users/Produck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Produck/subscriptions","organizations_url":"https://api.github.com/users/Produck/orgs","repos_url":"https://api.github.com/users/Produck/repos","events_url":"https://api.github.com/users/Produck/events{/privacy}","received_events_url":"https://api.github.com/users/Produck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Produck/learning-react","description":"[길벗] 리액트를 다루는 기술 서적에서 사용되는 코드","fork":true,"url":"https://api.github.com/repos/Produck/learning-react","forks_url":"https://api.github.com/repos/Produck/learning-react/forks","keys_url":"https://api.github.com/repos/Produck/learning-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Produck/learning-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Produck/learning-react/teams","hooks_url":"https://api.github.com/repos/Produck/learning-react/hooks","issue_events_url":"https://api.github.com/repos/Produck/learning-react/issues/events{/number}","events_url":"https://api.github.com/repos/Produck/learning-react/events","assignees_url":"https://api.github.com/repos/Produck/learning-react/assignees{/user}","branches_url":"https://api.github.com/repos/Produck/learning-react/branches{/branch}","tags_url":"https://api.github.com/repos/Produck/learning-react/tags","blobs_url":"https://api.github.com/repos/Produck/learning-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Produck/learning-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Produck/learning-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/Produck/learning-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Produck/learning-react/statuses/{sha}","languages_url":"https://api.github.com/repos/Produck/learning-react/languages","stargazers_url":"https://api.github.com/repos/Produck/learning-react/stargazers","contributors_url":"https://api.github.com/repos/Produck/learning-react/contributors","subscribers_url":"https://api.github.com/repos/Produck/learning-react/subscribers","subscription_url":"https://api.github.com/repos/Produck/learning-react/subscription","commits_url":"https://api.github.com/repos/Produck/learning-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/Produck/learning-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/Produck/learning-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/Produck/learning-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/Produck/learning-react/contents/{+path}","compare_url":"https://api.github.com/repos/Produck/learning-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Produck/learning-react/merges","archive_url":"https://api.github.com/repos/Produck/learning-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Produck/learning-react/downloads","issues_url":"https://api.github.com/repos/Produck/learning-react/issues{/number}","pulls_url":"https://api.github.com/repos/Produck/learning-react/pulls{/number}","milestones_url":"https://api.github.com/repos/Produck/learning-react/milestones{/number}","notifications_url":"https://api.github.com/repos/Produck/learning-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Produck/learning-react/labels{/name}","releases_url":"https://api.github.com/repos/Produck/learning-react/releases{/id}","deployments_url":"https://api.github.com/repos/Produck/learning-react/deployments","created_at":"2018-08-13T08:21:54Z","updated_at":"2018-08-13T08:36:56Z","pushed_at":"2018-08-13T08:36:54Z","git_url":"git://github.com/Produck/learning-react.git","ssh_url":"git@github.com:Produck/learning-react.git","clone_url":"https://github.com/Produck/learning-react.git","svn_url":"https://github.com/Produck/learning-react","homepage":null,"size":761,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"velopert:master","ref":"master","sha":"09a61a0872e94beb15fa9351331314504c838951","user":{"login":"velopert","id":17202261,"node_id":"MDQ6VXNlcjE3MjAyMjYx","avatar_url":"https://avatars0.githubusercontent.com/u/17202261?v=4","gravatar_id":"","url":"https://api.github.com/users/velopert","html_url":"https://github.com/velopert","followers_url":"https://api.github.com/users/velopert/followers","following_url":"https://api.github.com/users/velopert/following{/other_user}","gists_url":"https://api.github.com/users/velopert/gists{/gist_id}","starred_url":"https://api.github.com/users/velopert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velopert/subscriptions","organizations_url":"https://api.github.com/users/velopert/orgs","repos_url":"https://api.github.com/users/velopert/repos","events_url":"https://api.github.com/users/velopert/events{/privacy}","received_events_url":"https://api.github.com/users/velopert/received_events","type":"User","site_admin":false},"repo":{"id":134172373,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQxNzIzNzM=","name":"learning-react","full_name":"velopert/learning-react","owner":{"login":"velopert","id":17202261,"node_id":"MDQ6VXNlcjE3MjAyMjYx","avatar_url":"https://avatars0.githubusercontent.com/u/17202261?v=4","gravatar_id":"","url":"https://api.github.com/users/velopert","html_url":"https://github.com/velopert","followers_url":"https://api.github.com/users/velopert/followers","following_url":"https://api.github.com/users/velopert/following{/other_user}","gists_url":"https://api.github.com/users/velopert/gists{/gist_id}","starred_url":"https://api.github.com/users/velopert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velopert/subscriptions","organizations_url":"https://api.github.com/users/velopert/orgs","repos_url":"https://api.github.com/users/velopert/repos","events_url":"https://api.github.com/users/velopert/events{/privacy}","received_events_url":"https://api.github.com/users/velopert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/velopert/learning-react","description":"[길벗] 리액트를 다루는 기술 서적에서 사용되는 코드","fork":false,"url":"https://api.github.com/repos/velopert/learning-react","forks_url":"https://api.github.com/repos/velopert/learning-react/forks","keys_url":"https://api.github.com/repos/velopert/learning-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/velopert/learning-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/velopert/learning-react/teams","hooks_url":"https://api.github.com/repos/velopert/learning-react/hooks","issue_events_url":"https://api.github.com/repos/velopert/learning-react/issues/events{/number}","events_url":"https://api.github.com/repos/velopert/learning-react/events","assignees_url":"https://api.github.com/repos/velopert/learning-react/assignees{/user}","branches_url":"https://api.github.com/repos/velopert/learning-react/branches{/branch}","tags_url":"https://api.github.com/repos/velopert/learning-react/tags","blobs_url":"https://api.github.com/repos/velopert/learning-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/velopert/learning-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/velopert/learning-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/velopert/learning-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/velopert/learning-react/statuses/{sha}","languages_url":"https://api.github.com/repos/velopert/learning-react/languages","stargazers_url":"https://api.github.com/repos/velopert/learning-react/stargazers","contributors_url":"https://api.github.com/repos/velopert/learning-react/contributors","subscribers_url":"https://api.github.com/repos/velopert/learning-react/subscribers","subscription_url":"https://api.github.com/repos/velopert/learning-react/subscription","commits_url":"https://api.github.com/repos/velopert/learning-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/velopert/learning-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/velopert/learning-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/velopert/learning-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/velopert/learning-react/contents/{+path}","compare_url":"https://api.github.com/repos/velopert/learning-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/velopert/learning-react/merges","archive_url":"https://api.github.com/repos/velopert/learning-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/velopert/learning-react/downloads","issues_url":"https://api.github.com/repos/velopert/learning-react/issues{/number}","pulls_url":"https://api.github.com/repos/velopert/learning-react/pulls{/number}","milestones_url":"https://api.github.com/repos/velopert/learning-react/milestones{/number}","notifications_url":"https://api.github.com/repos/velopert/learning-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/velopert/learning-react/labels{/name}","releases_url":"https://api.github.com/repos/velopert/learning-react/releases{/id}","deployments_url":"https://api.github.com/repos/velopert/learning-react/deployments","created_at":"2018-05-20T17:37:07Z","updated_at":"2018-08-11T05:03:05Z","pushed_at":"2018-08-09T05:17:16Z","git_url":"git://github.com/velopert/learning-react.git","ssh_url":"git@github.com:velopert/learning-react.git","clone_url":"https://github.com/velopert/learning-react.git","svn_url":"https://github.com/velopert/learning-react","homepage":null,"size":761,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":5,"open_issues":8,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/velopert/learning-react/pulls/16"},"html":{"href":"https://github.com/velopert/learning-react/pull/16"},"issue":{"href":"https://api.github.com/repos/velopert/learning-react/issues/16"},"comments":{"href":"https://api.github.com/repos/velopert/learning-react/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/velopert/learning-react/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/velopert/learning-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/velopert/learning-react/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/velopert/learning-react/statuses/08b0547d00110fd1cac1402cc59e7fb9acb91808"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":11,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"Produck"}}