{"action":"created","comment":{"url":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/comments/191767999","pull_request_review_id":124402711,"id":191767999,"diff_hunk":"@@ -0,0 +1,83 @@\n+import React from 'react';\n+import './FormWrapper.css';\n+import HeaderForm from '../../components/Forms/HeaderForm/HeaderForm';\n+import TodosForm from '../../components/Forms/TodosForm/TodosForm'\n+import FooterForm from '../../components/Forms/FooterForm/FooterForm';\n+\n+import {connect} from 'react-redux'\n+\n+import * as actionCreators from '../../store/actions/manipulateTodoState';\n+\n+import {Route} from 'react-router-dom';\n+\n+const FormWrapper = (props) => {\n+\n+\n+    return (\n+        <div className=\"form-container\">\n+\n+            {/* #############      HEADER     ############ */}\n+            <Route path=\"/\"\n+                   render={() => (\n+                       <HeaderForm\n+                           postTodoHandler={props.postTodoHandler}\n+                       />\n+                   )}\n+            />\n+\n+\n+            <Route path=\"/\" exact\n+                   render={() => (\n+                       <TodosForm\n+                           todos={props.todos}\n+                           deleteTodoHandler={props.deleteTodoHandler}\n+                           putTodoHandler={props.putTodoHandler}\n+\n+                       />)\n+                   }\n+            />\n+\n+\n+            <Route path=\"/completed-todos\" exact\n+                   render={() => (\n+                       <TodosForm\n+                           todos={props.completedTodos}\n+                           deleteTodoHandler={props.deleteTodoHandler}\n+                           putTodoHandler={props.putTodoHandler}\n+                       />\n+                   )}\n+            />\n+\n+\n+            <Route path=\"/not-completed-todos\" exact\n+                   render={() => (\n+                       <TodosForm\n+                           todos={props.notCompletedTodos}\n+                           deleteTodoHandler={props.deleteTodoHandler}\n+                           putTodoHandler={props.putTodoHandler}\n+                       />\n+\n+                   )}\n+            />\n+\n+            {/* #############      FOOTER     ############ */}\n+            <Route path=\"/\" component={FooterForm}/>\n+\n+        </div>\n+    );\n+};\n+\n+","path":"src/containers/FormWrapper/FormWrapper.js","position":70,"original_position":70,"commit_id":"8445f18748509b930fbf1908159bcf0425ce269e","original_commit_id":"8445f18748509b930fbf1908159bcf0425ce269e","user":{"login":"kawamurakazushi","id":7858158,"avatar_url":"https://avatars0.githubusercontent.com/u/7858158?v=4","gravatar_id":"","url":"https://api.github.com/users/kawamurakazushi","html_url":"https://github.com/kawamurakazushi","followers_url":"https://api.github.com/users/kawamurakazushi/followers","following_url":"https://api.github.com/users/kawamurakazushi/following{/other_user}","gists_url":"https://api.github.com/users/kawamurakazushi/gists{/gist_id}","starred_url":"https://api.github.com/users/kawamurakazushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kawamurakazushi/subscriptions","organizations_url":"https://api.github.com/users/kawamurakazushi/orgs","repos_url":"https://api.github.com/users/kawamurakazushi/repos","events_url":"https://api.github.com/users/kawamurakazushi/events{/privacy}","received_events_url":"https://api.github.com/users/kawamurakazushi/received_events","type":"User","site_admin":false},"body":"There is also a technique like this:\r\n\r\n```js\r\nconst mapStateToProps = state => {\r\n  return {\r\n     todos: state.todos,\r\n     completedTodos: state.todos.filter(...),\r\n     notCompletedTodos: state.todos.filter(...),\r\n  }\r\n}\r\n```","created_at":"2018-05-30T13:31:41Z","updated_at":"2018-05-30T13:35:26Z","html_url":"https://github.com/Cody1009/scoville_todo_app/pull/3#discussion_r191767999","pull_request_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/comments/191767999"},"html":{"href":"https://github.com/Cody1009/scoville_todo_app/pull/3#discussion_r191767999"},"pull_request":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/3","id":191388144,"html_url":"https://github.com/Cody1009/scoville_todo_app/pull/3","diff_url":"https://github.com/Cody1009/scoville_todo_app/pull/3.diff","patch_url":"https://github.com/Cody1009/scoville_todo_app/pull/3.patch","issue_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues/3","number":3,"state":"open","locked":false,"title":"react reduxを使ってtodo appを作成しました。","user":{"login":"Cody1009","id":24753223,"avatar_url":"https://avatars2.githubusercontent.com/u/24753223?v=4","gravatar_id":"","url":"https://api.github.com/users/Cody1009","html_url":"https://github.com/Cody1009","followers_url":"https://api.github.com/users/Cody1009/followers","following_url":"https://api.github.com/users/Cody1009/following{/other_user}","gists_url":"https://api.github.com/users/Cody1009/gists{/gist_id}","starred_url":"https://api.github.com/users/Cody1009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cody1009/subscriptions","organizations_url":"https://api.github.com/users/Cody1009/orgs","repos_url":"https://api.github.com/users/Cody1009/repos","events_url":"https://api.github.com/users/Cody1009/events{/privacy}","received_events_url":"https://api.github.com/users/Cody1009/received_events","type":"User","site_admin":false},"body":"react reduxを使ってtodo appを作成しました。fetchやstate操作の部分のロジックはあまり変えていません。\r\nあとrouterの問題で、完了済みのタスクを移すページに遷移はできるのですが、リロードを挟まないと完了済みのタスクだけ表示できるようにできません。\r\nご確認よろしくおねがいします。","created_at":"2018-05-30T09:26:52Z","updated_at":"2018-05-30T13:35:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34fe50cb094c6f3bfefe11bd96c61f3919d3c9c1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues/3/comments","statuses_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/statuses/8445f18748509b930fbf1908159bcf0425ce269e","head":{"label":"Cody1009:with-react-redux","ref":"with-react-redux","sha":"8445f18748509b930fbf1908159bcf0425ce269e","user":{"login":"Cody1009","id":24753223,"avatar_url":"https://avatars2.githubusercontent.com/u/24753223?v=4","gravatar_id":"","url":"https://api.github.com/users/Cody1009","html_url":"https://github.com/Cody1009","followers_url":"https://api.github.com/users/Cody1009/followers","following_url":"https://api.github.com/users/Cody1009/following{/other_user}","gists_url":"https://api.github.com/users/Cody1009/gists{/gist_id}","starred_url":"https://api.github.com/users/Cody1009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cody1009/subscriptions","organizations_url":"https://api.github.com/users/Cody1009/orgs","repos_url":"https://api.github.com/users/Cody1009/repos","events_url":"https://api.github.com/users/Cody1009/events{/privacy}","received_events_url":"https://api.github.com/users/Cody1009/received_events","type":"User","site_admin":false},"repo":{"id":133122747,"name":"scoville_todo_app","full_name":"Cody1009/scoville_todo_app","owner":{"login":"Cody1009","id":24753223,"avatar_url":"https://avatars2.githubusercontent.com/u/24753223?v=4","gravatar_id":"","url":"https://api.github.com/users/Cody1009","html_url":"https://github.com/Cody1009","followers_url":"https://api.github.com/users/Cody1009/followers","following_url":"https://api.github.com/users/Cody1009/following{/other_user}","gists_url":"https://api.github.com/users/Cody1009/gists{/gist_id}","starred_url":"https://api.github.com/users/Cody1009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cody1009/subscriptions","organizations_url":"https://api.github.com/users/Cody1009/orgs","repos_url":"https://api.github.com/users/Cody1009/repos","events_url":"https://api.github.com/users/Cody1009/events{/privacy}","received_events_url":"https://api.github.com/users/Cody1009/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cody1009/scoville_todo_app","description":null,"fork":false,"url":"https://api.github.com/repos/Cody1009/scoville_todo_app","forks_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/forks","keys_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/teams","hooks_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/hooks","issue_events_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues/events{/number}","events_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/events","assignees_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/assignees{/user}","branches_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/branches{/branch}","tags_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/tags","blobs_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/languages","stargazers_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/stargazers","contributors_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/contributors","subscribers_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/subscribers","subscription_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/subscription","commits_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/contents/{+path}","compare_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/merges","archive_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/downloads","issues_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues{/number}","pulls_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/labels{/name}","releases_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/releases{/id}","deployments_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/deployments","created_at":"2018-05-12T07:07:28Z","updated_at":"2018-05-22T12:22:59Z","pushed_at":"2018-05-30T09:26:52Z","git_url":"git://github.com/Cody1009/scoville_todo_app.git","ssh_url":"git@github.com:Cody1009/scoville_todo_app.git","clone_url":"https://github.com/Cody1009/scoville_todo_app.git","svn_url":"https://github.com/Cody1009/scoville_todo_app","homepage":null,"size":19607,"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":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Cody1009:master","ref":"master","sha":"818363850c5fd0ea5e688f9874c083ed5538ba58","user":{"login":"Cody1009","id":24753223,"avatar_url":"https://avatars2.githubusercontent.com/u/24753223?v=4","gravatar_id":"","url":"https://api.github.com/users/Cody1009","html_url":"https://github.com/Cody1009","followers_url":"https://api.github.com/users/Cody1009/followers","following_url":"https://api.github.com/users/Cody1009/following{/other_user}","gists_url":"https://api.github.com/users/Cody1009/gists{/gist_id}","starred_url":"https://api.github.com/users/Cody1009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cody1009/subscriptions","organizations_url":"https://api.github.com/users/Cody1009/orgs","repos_url":"https://api.github.com/users/Cody1009/repos","events_url":"https://api.github.com/users/Cody1009/events{/privacy}","received_events_url":"https://api.github.com/users/Cody1009/received_events","type":"User","site_admin":false},"repo":{"id":133122747,"name":"scoville_todo_app","full_name":"Cody1009/scoville_todo_app","owner":{"login":"Cody1009","id":24753223,"avatar_url":"https://avatars2.githubusercontent.com/u/24753223?v=4","gravatar_id":"","url":"https://api.github.com/users/Cody1009","html_url":"https://github.com/Cody1009","followers_url":"https://api.github.com/users/Cody1009/followers","following_url":"https://api.github.com/users/Cody1009/following{/other_user}","gists_url":"https://api.github.com/users/Cody1009/gists{/gist_id}","starred_url":"https://api.github.com/users/Cody1009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cody1009/subscriptions","organizations_url":"https://api.github.com/users/Cody1009/orgs","repos_url":"https://api.github.com/users/Cody1009/repos","events_url":"https://api.github.com/users/Cody1009/events{/privacy}","received_events_url":"https://api.github.com/users/Cody1009/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cody1009/scoville_todo_app","description":null,"fork":false,"url":"https://api.github.com/repos/Cody1009/scoville_todo_app","forks_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/forks","keys_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/teams","hooks_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/hooks","issue_events_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues/events{/number}","events_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/events","assignees_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/assignees{/user}","branches_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/branches{/branch}","tags_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/tags","blobs_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/languages","stargazers_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/stargazers","contributors_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/contributors","subscribers_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/subscribers","subscription_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/subscription","commits_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/contents/{+path}","compare_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/merges","archive_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/downloads","issues_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues{/number}","pulls_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/labels{/name}","releases_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/releases{/id}","deployments_url":"https://api.github.com/repos/Cody1009/scoville_todo_app/deployments","created_at":"2018-05-12T07:07:28Z","updated_at":"2018-05-22T12:22:59Z","pushed_at":"2018-05-30T09:26:52Z","git_url":"git://github.com/Cody1009/scoville_todo_app.git","ssh_url":"git@github.com:Cody1009/scoville_todo_app.git","clone_url":"https://github.com/Cody1009/scoville_todo_app.git","svn_url":"https://github.com/Cody1009/scoville_todo_app","homepage":null,"size":19607,"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":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/3"},"html":{"href":"https://github.com/Cody1009/scoville_todo_app/pull/3"},"issue":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues/3"},"comments":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Cody1009/scoville_todo_app/statuses/8445f18748509b930fbf1908159bcf0425ce269e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kawamurakazushi"}}