{"action":"created","comment":{"url":"https://api.github.com/repos/aragon/aragon-ui/pulls/comments/198317281","pull_request_review_id":117802699,"id":198317281,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODMxNzI4MQ==","diff_hunk":"@@ -0,0 +1,49 @@\n+import React from 'react'\n+import PropTypes from 'prop-types'\n+import getDisplayName from 'react-display-name'\n+\n+// Render prop component and HOC for re-rendering.\n+// For a discussion on pitfalls, see\n+// https://gist.github.com/staltz/08bf613199092eeb41ac8137d51eb5e6\n+\n+class Redraw extends React.Component {\n+  static propTypes = {\n+    interval: PropTypes.number,\n+    children: PropTypes.func.isRequired,\n+  }\n+  static defaultProps = {\n+    interval: 1000,\n+  }\n+  state = {\n+    lastDraw: -1,","path":"src/providers/Redraw/Redraw.js","position":18,"original_position":18,"commit_id":"4f37d354ee8cd1547273c303d03fbb2c5e0f2fbe","original_commit_id":"4f37d354ee8cd1547273c303d03fbb2c5e0f2fbe","user":{"login":"sohkai","id":4166642,"node_id":"MDQ6VXNlcjQxNjY2NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/4166642?v=4","gravatar_id":"","url":"https://api.github.com/users/sohkai","html_url":"https://github.com/sohkai","followers_url":"https://api.github.com/users/sohkai/followers","following_url":"https://api.github.com/users/sohkai/following{/other_user}","gists_url":"https://api.github.com/users/sohkai/gists{/gist_id}","starred_url":"https://api.github.com/users/sohkai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohkai/subscriptions","organizations_url":"https://api.github.com/users/sohkai/orgs","repos_url":"https://api.github.com/users/sohkai/repos","events_url":"https://api.github.com/users/sohkai/events{/privacy}","received_events_url":"https://api.github.com/users/sohkai/received_events","type":"User","site_admin":false},"body":"To simplify `this.draw()`, what do you think about using `Date.now()` here as the initial state?","created_at":"2018-06-26T22:28:34Z","updated_at":"2018-06-26T22:29:34Z","html_url":"https://github.com/aragon/aragon-ui/pull/158#discussion_r198317281","pull_request_url":"https://api.github.com/repos/aragon/aragon-ui/pulls/158","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/aragon/aragon-ui/pulls/comments/198317281"},"html":{"href":"https://github.com/aragon/aragon-ui/pull/158#discussion_r198317281"},"pull_request":{"href":"https://api.github.com/repos/aragon/aragon-ui/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/aragon/aragon-ui/pulls/158","id":184493269,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg0NDkzMjY5","html_url":"https://github.com/aragon/aragon-ui/pull/158","diff_url":"https://github.com/aragon/aragon-ui/pull/158.diff","patch_url":"https://github.com/aragon/aragon-ui/pull/158.patch","issue_url":"https://api.github.com/repos/aragon/aragon-ui/issues/158","number":158,"state":"closed","locked":false,"title":"Move “providers” components to src/providers","user":{"login":"bpierre","id":36158,"node_id":"MDQ6VXNlcjM2MTU4","avatar_url":"https://avatars2.githubusercontent.com/u/36158?v=4","gravatar_id":"","url":"https://api.github.com/users/bpierre","html_url":"https://github.com/bpierre","followers_url":"https://api.github.com/users/bpierre/followers","following_url":"https://api.github.com/users/bpierre/following{/other_user}","gists_url":"https://api.github.com/users/bpierre/gists{/gist_id}","starred_url":"https://api.github.com/users/bpierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpierre/subscriptions","organizations_url":"https://api.github.com/users/bpierre/orgs","repos_url":"https://api.github.com/users/bpierre/repos","events_url":"https://api.github.com/users/bpierre/events{/privacy}","received_events_url":"https://api.github.com/users/bpierre/received_events","type":"User","site_admin":false},"body":"Requires https://github.com/aragon/aragon-ui/pull/160 to be merged before merging into `master`.\r\n\r\nThis includes high-order components and render props components.\r\n\r\nAlso reorganize the exports so that each directory in src/ re-exports its own names.\r\n\r\nEach provider is available as a component expecting a render function as its `children`. They also have an `hocWrap` method that acts as an HOC wrapper (this is very useful to wrap styled-components).\r\n\r\nThe only exception to this is `observe`, which is only an HOC wrapper at the moment and will be migrated later.\r\n\r\nIn the case of PublicUrl, it is now using the new [React Context](https://reactjs.org/docs/context.html) API.","created_at":"2018-04-26T23:57:56Z","updated_at":"2018-06-26T22:29:34Z","closed_at":"2018-05-22T17:15:47Z","merged_at":"2018-05-22T17:15:46Z","merge_commit_sha":"90d8d775dd980e4459f0d1e00991c817cc01efd8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aragon/aragon-ui/pulls/158/commits","review_comments_url":"https://api.github.com/repos/aragon/aragon-ui/pulls/158/comments","review_comment_url":"https://api.github.com/repos/aragon/aragon-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aragon/aragon-ui/issues/158/comments","statuses_url":"https://api.github.com/repos/aragon/aragon-ui/statuses/4f37d354ee8cd1547273c303d03fbb2c5e0f2fbe","head":{"label":"aragon:providers-comps","ref":"providers-comps","sha":"4f37d354ee8cd1547273c303d03fbb2c5e0f2fbe","user":{"login":"aragon","id":24612534,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NjEyNTM0","avatar_url":"https://avatars1.githubusercontent.com/u/24612534?v=4","gravatar_id":"","url":"https://api.github.com/users/aragon","html_url":"https://github.com/aragon","followers_url":"https://api.github.com/users/aragon/followers","following_url":"https://api.github.com/users/aragon/following{/other_user}","gists_url":"https://api.github.com/users/aragon/gists{/gist_id}","starred_url":"https://api.github.com/users/aragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aragon/subscriptions","organizations_url":"https://api.github.com/users/aragon/orgs","repos_url":"https://api.github.com/users/aragon/repos","events_url":"https://api.github.com/users/aragon/events{/privacy}","received_events_url":"https://api.github.com/users/aragon/received_events","type":"Organization","site_admin":false},"repo":{"id":105753403,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU3NTM0MDM=","name":"aragon-ui","full_name":"aragon/aragon-ui","owner":{"login":"aragon","id":24612534,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NjEyNTM0","avatar_url":"https://avatars1.githubusercontent.com/u/24612534?v=4","gravatar_id":"","url":"https://api.github.com/users/aragon","html_url":"https://github.com/aragon","followers_url":"https://api.github.com/users/aragon/followers","following_url":"https://api.github.com/users/aragon/following{/other_user}","gists_url":"https://api.github.com/users/aragon/gists{/gist_id}","starred_url":"https://api.github.com/users/aragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aragon/subscriptions","organizations_url":"https://api.github.com/users/aragon/orgs","repos_url":"https://api.github.com/users/aragon/repos","events_url":"https://api.github.com/users/aragon/events{/privacy}","received_events_url":"https://api.github.com/users/aragon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aragon/aragon-ui","description":"UI toolkit for Aragon","fork":false,"url":"https://api.github.com/repos/aragon/aragon-ui","forks_url":"https://api.github.com/repos/aragon/aragon-ui/forks","keys_url":"https://api.github.com/repos/aragon/aragon-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aragon/aragon-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aragon/aragon-ui/teams","hooks_url":"https://api.github.com/repos/aragon/aragon-ui/hooks","issue_events_url":"https://api.github.com/repos/aragon/aragon-ui/issues/events{/number}","events_url":"https://api.github.com/repos/aragon/aragon-ui/events","assignees_url":"https://api.github.com/repos/aragon/aragon-ui/assignees{/user}","branches_url":"https://api.github.com/repos/aragon/aragon-ui/branches{/branch}","tags_url":"https://api.github.com/repos/aragon/aragon-ui/tags","blobs_url":"https://api.github.com/repos/aragon/aragon-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aragon/aragon-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aragon/aragon-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/aragon/aragon-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aragon/aragon-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/aragon/aragon-ui/languages","stargazers_url":"https://api.github.com/repos/aragon/aragon-ui/stargazers","contributors_url":"https://api.github.com/repos/aragon/aragon-ui/contributors","subscribers_url":"https://api.github.com/repos/aragon/aragon-ui/subscribers","subscription_url":"https://api.github.com/repos/aragon/aragon-ui/subscription","commits_url":"https://api.github.com/repos/aragon/aragon-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/aragon/aragon-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/aragon/aragon-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/aragon/aragon-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/aragon/aragon-ui/contents/{+path}","compare_url":"https://api.github.com/repos/aragon/aragon-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aragon/aragon-ui/merges","archive_url":"https://api.github.com/repos/aragon/aragon-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aragon/aragon-ui/downloads","issues_url":"https://api.github.com/repos/aragon/aragon-ui/issues{/number}","pulls_url":"https://api.github.com/repos/aragon/aragon-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/aragon/aragon-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/aragon/aragon-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aragon/aragon-ui/labels{/name}","releases_url":"https://api.github.com/repos/aragon/aragon-ui/releases{/id}","deployments_url":"https://api.github.com/repos/aragon/aragon-ui/deployments","created_at":"2017-10-04T09:52:20Z","updated_at":"2018-06-26T18:26:49Z","pushed_at":"2018-06-26T12:51:26Z","git_url":"git://github.com/aragon/aragon-ui.git","ssh_url":"git@github.com:aragon/aragon-ui.git","clone_url":"https://github.com/aragon/aragon-ui.git","svn_url":"https://github.com/aragon/aragon-ui","homepage":null,"size":21568,"stargazers_count":49,"watchers_count":49,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":16,"open_issues":39,"watchers":49,"default_branch":"master"}},"base":{"label":"aragon:master","ref":"master","sha":"e708ac652b1ee7b146e99228fc1ea36b62cbcac3","user":{"login":"aragon","id":24612534,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NjEyNTM0","avatar_url":"https://avatars1.githubusercontent.com/u/24612534?v=4","gravatar_id":"","url":"https://api.github.com/users/aragon","html_url":"https://github.com/aragon","followers_url":"https://api.github.com/users/aragon/followers","following_url":"https://api.github.com/users/aragon/following{/other_user}","gists_url":"https://api.github.com/users/aragon/gists{/gist_id}","starred_url":"https://api.github.com/users/aragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aragon/subscriptions","organizations_url":"https://api.github.com/users/aragon/orgs","repos_url":"https://api.github.com/users/aragon/repos","events_url":"https://api.github.com/users/aragon/events{/privacy}","received_events_url":"https://api.github.com/users/aragon/received_events","type":"Organization","site_admin":false},"repo":{"id":105753403,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU3NTM0MDM=","name":"aragon-ui","full_name":"aragon/aragon-ui","owner":{"login":"aragon","id":24612534,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NjEyNTM0","avatar_url":"https://avatars1.githubusercontent.com/u/24612534?v=4","gravatar_id":"","url":"https://api.github.com/users/aragon","html_url":"https://github.com/aragon","followers_url":"https://api.github.com/users/aragon/followers","following_url":"https://api.github.com/users/aragon/following{/other_user}","gists_url":"https://api.github.com/users/aragon/gists{/gist_id}","starred_url":"https://api.github.com/users/aragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aragon/subscriptions","organizations_url":"https://api.github.com/users/aragon/orgs","repos_url":"https://api.github.com/users/aragon/repos","events_url":"https://api.github.com/users/aragon/events{/privacy}","received_events_url":"https://api.github.com/users/aragon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aragon/aragon-ui","description":"UI toolkit for Aragon","fork":false,"url":"https://api.github.com/repos/aragon/aragon-ui","forks_url":"https://api.github.com/repos/aragon/aragon-ui/forks","keys_url":"https://api.github.com/repos/aragon/aragon-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aragon/aragon-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aragon/aragon-ui/teams","hooks_url":"https://api.github.com/repos/aragon/aragon-ui/hooks","issue_events_url":"https://api.github.com/repos/aragon/aragon-ui/issues/events{/number}","events_url":"https://api.github.com/repos/aragon/aragon-ui/events","assignees_url":"https://api.github.com/repos/aragon/aragon-ui/assignees{/user}","branches_url":"https://api.github.com/repos/aragon/aragon-ui/branches{/branch}","tags_url":"https://api.github.com/repos/aragon/aragon-ui/tags","blobs_url":"https://api.github.com/repos/aragon/aragon-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aragon/aragon-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aragon/aragon-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/aragon/aragon-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aragon/aragon-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/aragon/aragon-ui/languages","stargazers_url":"https://api.github.com/repos/aragon/aragon-ui/stargazers","contributors_url":"https://api.github.com/repos/aragon/aragon-ui/contributors","subscribers_url":"https://api.github.com/repos/aragon/aragon-ui/subscribers","subscription_url":"https://api.github.com/repos/aragon/aragon-ui/subscription","commits_url":"https://api.github.com/repos/aragon/aragon-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/aragon/aragon-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/aragon/aragon-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/aragon/aragon-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/aragon/aragon-ui/contents/{+path}","compare_url":"https://api.github.com/repos/aragon/aragon-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aragon/aragon-ui/merges","archive_url":"https://api.github.com/repos/aragon/aragon-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aragon/aragon-ui/downloads","issues_url":"https://api.github.com/repos/aragon/aragon-ui/issues{/number}","pulls_url":"https://api.github.com/repos/aragon/aragon-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/aragon/aragon-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/aragon/aragon-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aragon/aragon-ui/labels{/name}","releases_url":"https://api.github.com/repos/aragon/aragon-ui/releases{/id}","deployments_url":"https://api.github.com/repos/aragon/aragon-ui/deployments","created_at":"2017-10-04T09:52:20Z","updated_at":"2018-06-26T18:26:49Z","pushed_at":"2018-06-26T12:51:26Z","git_url":"git://github.com/aragon/aragon-ui.git","ssh_url":"git@github.com:aragon/aragon-ui.git","clone_url":"https://github.com/aragon/aragon-ui.git","svn_url":"https://github.com/aragon/aragon-ui","homepage":null,"size":21568,"stargazers_count":49,"watchers_count":49,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":16,"open_issues":39,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aragon/aragon-ui/pulls/158"},"html":{"href":"https://github.com/aragon/aragon-ui/pull/158"},"issue":{"href":"https://api.github.com/repos/aragon/aragon-ui/issues/158"},"comments":{"href":"https://api.github.com/repos/aragon/aragon-ui/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/aragon/aragon-ui/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/aragon/aragon-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aragon/aragon-ui/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/aragon/aragon-ui/statuses/4f37d354ee8cd1547273c303d03fbb2c5e0f2fbe"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sohkai"}}