{"action":"created","comment":{"url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/comments/244542737","pull_request_review_id":188448046,"id":244542737,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDU0MjczNw==","diff_hunk":"@@ -1,37 +1,51 @@\n-import React from 'react';\n+import React, { Component } from 'react';\n import PropTypes from 'prop-types';\n import { connect } from 'react-redux';\n \n import CartItemPropTypes from 'proptypes/cart-item';\n import CartWidget from 'components/CartWidget/CartWidget';\n-import updateProductInCart from 'actions/cart';\n+import { updateProductInCart, loadCart } from 'actions/cart';\n \n-const CartWidgetContainer = ({ cart, changeItemQuantityInCart }) => (\n-  <aside className=\"cart-widget\">\n-    <CartWidget\n-      items={cart}\n-      changeItemQuantityInCart={changeItemQuantityInCart}\n-    />\n-  </aside>\n-);\n+class CartWidgetContainer extends Component {\n+  componentDidMount() {\n+    const { loadCartContent } = this.props;\n+    loadCartContent();","path":"src/js/components/CartWidget/CartWidgetContainer.js","position":22,"original_position":22,"commit_id":"27ff17906f8d4d46cdb2abbc5662ca631e3c6de8","original_commit_id":"27ff17906f8d4d46cdb2abbc5662ca631e3c6de8","user":{"login":"index01d","id":236657,"node_id":"MDQ6VXNlcjIzNjY1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/236657?v=4","gravatar_id":"","url":"https://api.github.com/users/index01d","html_url":"https://github.com/index01d","followers_url":"https://api.github.com/users/index01d/followers","following_url":"https://api.github.com/users/index01d/following{/other_user}","gists_url":"https://api.github.com/users/index01d/gists{/gist_id}","starred_url":"https://api.github.com/users/index01d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/index01d/subscriptions","organizations_url":"https://api.github.com/users/index01d/orgs","repos_url":"https://api.github.com/users/index01d/repos","events_url":"https://api.github.com/users/index01d/events{/privacy}","received_events_url":"https://api.github.com/users/index01d/received_events","type":"User","site_admin":false},"body":"таким образом код получения необходимых для рендеринга страницы данных окажется в настройке роутов (нам это пригодится в дальнейшем для SSR)","created_at":"2018-12-30T18:56:26Z","updated_at":"2018-12-30T18:57:40Z","html_url":"https://github.com/selivanov-d/thinknetica-react-basic/pull/8#discussion_r244542737","pull_request_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/comments/244542737"},"html":{"href":"https://github.com/selivanov-d/thinknetica-react-basic/pull/8#discussion_r244542737"},"pull_request":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/8"}},"in_reply_to_id":244542729},"pull_request":{"url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/8","id":241388422,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxMzg4NDIy","html_url":"https://github.com/selivanov-d/thinknetica-react-basic/pull/8","diff_url":"https://github.com/selivanov-d/thinknetica-react-basic/pull/8.diff","patch_url":"https://github.com/selivanov-d/thinknetica-react-basic/pull/8.patch","issue_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues/8","number":8,"state":"open","locked":false,"title":"API middleware, prepareData helper, cart with LocalStorage","user":{"login":"selivanov-d","id":18160733,"node_id":"MDQ6VXNlcjE4MTYwNzMz","avatar_url":"https://avatars2.githubusercontent.com/u/18160733?v=4","gravatar_id":"","url":"https://api.github.com/users/selivanov-d","html_url":"https://github.com/selivanov-d","followers_url":"https://api.github.com/users/selivanov-d/followers","following_url":"https://api.github.com/users/selivanov-d/following{/other_user}","gists_url":"https://api.github.com/users/selivanov-d/gists{/gist_id}","starred_url":"https://api.github.com/users/selivanov-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selivanov-d/subscriptions","organizations_url":"https://api.github.com/users/selivanov-d/orgs","repos_url":"https://api.github.com/users/selivanov-d/repos","events_url":"https://api.github.com/users/selivanov-d/events{/privacy}","received_events_url":"https://api.github.com/users/selivanov-d/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-28T20:04:07Z","updated_at":"2018-12-30T18:57:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54ac24f22c1f37690092e5f3727a60740a6ba525","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/8/commits","review_comments_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/8/comments","review_comment_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues/8/comments","statuses_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/statuses/27ff17906f8d4d46cdb2abbc5662ca631e3c6de8","head":{"label":"selivanov-d:task-7","ref":"task-7","sha":"27ff17906f8d4d46cdb2abbc5662ca631e3c6de8","user":{"login":"selivanov-d","id":18160733,"node_id":"MDQ6VXNlcjE4MTYwNzMz","avatar_url":"https://avatars2.githubusercontent.com/u/18160733?v=4","gravatar_id":"","url":"https://api.github.com/users/selivanov-d","html_url":"https://github.com/selivanov-d","followers_url":"https://api.github.com/users/selivanov-d/followers","following_url":"https://api.github.com/users/selivanov-d/following{/other_user}","gists_url":"https://api.github.com/users/selivanov-d/gists{/gist_id}","starred_url":"https://api.github.com/users/selivanov-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selivanov-d/subscriptions","organizations_url":"https://api.github.com/users/selivanov-d/orgs","repos_url":"https://api.github.com/users/selivanov-d/repos","events_url":"https://api.github.com/users/selivanov-d/events{/privacy}","received_events_url":"https://api.github.com/users/selivanov-d/received_events","type":"User","site_admin":false},"repo":{"id":155444096,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0NDQwOTY=","name":"thinknetica-react-basic","full_name":"selivanov-d/thinknetica-react-basic","private":false,"owner":{"login":"selivanov-d","id":18160733,"node_id":"MDQ6VXNlcjE4MTYwNzMz","avatar_url":"https://avatars2.githubusercontent.com/u/18160733?v=4","gravatar_id":"","url":"https://api.github.com/users/selivanov-d","html_url":"https://github.com/selivanov-d","followers_url":"https://api.github.com/users/selivanov-d/followers","following_url":"https://api.github.com/users/selivanov-d/following{/other_user}","gists_url":"https://api.github.com/users/selivanov-d/gists{/gist_id}","starred_url":"https://api.github.com/users/selivanov-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selivanov-d/subscriptions","organizations_url":"https://api.github.com/users/selivanov-d/orgs","repos_url":"https://api.github.com/users/selivanov-d/repos","events_url":"https://api.github.com/users/selivanov-d/events{/privacy}","received_events_url":"https://api.github.com/users/selivanov-d/received_events","type":"User","site_admin":false},"html_url":"https://github.com/selivanov-d/thinknetica-react-basic","description":null,"fork":false,"url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic","forks_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/forks","keys_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/teams","hooks_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/hooks","issue_events_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues/events{/number}","events_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/events","assignees_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/assignees{/user}","branches_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/branches{/branch}","tags_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/tags","blobs_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/statuses/{sha}","languages_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/languages","stargazers_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/stargazers","contributors_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/contributors","subscribers_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/subscribers","subscription_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/subscription","commits_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/contents/{+path}","compare_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/merges","archive_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/downloads","issues_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues{/number}","pulls_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls{/number}","milestones_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/milestones{/number}","notifications_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/labels{/name}","releases_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/releases{/id}","deployments_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/deployments","created_at":"2018-10-30T19:26:38Z","updated_at":"2018-12-17T18:20:59Z","pushed_at":"2018-12-28T20:04:08Z","git_url":"git://github.com/selivanov-d/thinknetica-react-basic.git","ssh_url":"git@github.com:selivanov-d/thinknetica-react-basic.git","clone_url":"https://github.com/selivanov-d/thinknetica-react-basic.git","svn_url":"https://github.com/selivanov-d/thinknetica-react-basic","homepage":null,"size":167,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"selivanov-d:master","ref":"master","sha":"d2ddba0248365ddc3d67116b80f7a17f313986e6","user":{"login":"selivanov-d","id":18160733,"node_id":"MDQ6VXNlcjE4MTYwNzMz","avatar_url":"https://avatars2.githubusercontent.com/u/18160733?v=4","gravatar_id":"","url":"https://api.github.com/users/selivanov-d","html_url":"https://github.com/selivanov-d","followers_url":"https://api.github.com/users/selivanov-d/followers","following_url":"https://api.github.com/users/selivanov-d/following{/other_user}","gists_url":"https://api.github.com/users/selivanov-d/gists{/gist_id}","starred_url":"https://api.github.com/users/selivanov-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selivanov-d/subscriptions","organizations_url":"https://api.github.com/users/selivanov-d/orgs","repos_url":"https://api.github.com/users/selivanov-d/repos","events_url":"https://api.github.com/users/selivanov-d/events{/privacy}","received_events_url":"https://api.github.com/users/selivanov-d/received_events","type":"User","site_admin":false},"repo":{"id":155444096,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0NDQwOTY=","name":"thinknetica-react-basic","full_name":"selivanov-d/thinknetica-react-basic","private":false,"owner":{"login":"selivanov-d","id":18160733,"node_id":"MDQ6VXNlcjE4MTYwNzMz","avatar_url":"https://avatars2.githubusercontent.com/u/18160733?v=4","gravatar_id":"","url":"https://api.github.com/users/selivanov-d","html_url":"https://github.com/selivanov-d","followers_url":"https://api.github.com/users/selivanov-d/followers","following_url":"https://api.github.com/users/selivanov-d/following{/other_user}","gists_url":"https://api.github.com/users/selivanov-d/gists{/gist_id}","starred_url":"https://api.github.com/users/selivanov-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selivanov-d/subscriptions","organizations_url":"https://api.github.com/users/selivanov-d/orgs","repos_url":"https://api.github.com/users/selivanov-d/repos","events_url":"https://api.github.com/users/selivanov-d/events{/privacy}","received_events_url":"https://api.github.com/users/selivanov-d/received_events","type":"User","site_admin":false},"html_url":"https://github.com/selivanov-d/thinknetica-react-basic","description":null,"fork":false,"url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic","forks_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/forks","keys_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/teams","hooks_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/hooks","issue_events_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues/events{/number}","events_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/events","assignees_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/assignees{/user}","branches_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/branches{/branch}","tags_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/tags","blobs_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/refs{/sha}","trees_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/statuses/{sha}","languages_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/languages","stargazers_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/stargazers","contributors_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/contributors","subscribers_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/subscribers","subscription_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/subscription","commits_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/commits{/sha}","git_commits_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/git/commits{/sha}","comments_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/comments{/number}","issue_comment_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues/comments{/number}","contents_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/contents/{+path}","compare_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/merges","archive_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/downloads","issues_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues{/number}","pulls_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls{/number}","milestones_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/milestones{/number}","notifications_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/labels{/name}","releases_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/releases{/id}","deployments_url":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/deployments","created_at":"2018-10-30T19:26:38Z","updated_at":"2018-12-17T18:20:59Z","pushed_at":"2018-12-28T20:04:08Z","git_url":"git://github.com/selivanov-d/thinknetica-react-basic.git","ssh_url":"git@github.com:selivanov-d/thinknetica-react-basic.git","clone_url":"https://github.com/selivanov-d/thinknetica-react-basic.git","svn_url":"https://github.com/selivanov-d/thinknetica-react-basic","homepage":null,"size":167,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/8"},"html":{"href":"https://github.com/selivanov-d/thinknetica-react-basic/pull/8"},"issue":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues/8"},"comments":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/selivanov-d/thinknetica-react-basic/statuses/27ff17906f8d4d46cdb2abbc5662ca631e3c6de8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"index01d"}}