{"action":"created","comment":{"url":"https://api.github.com/repos/iamstarkov/theming/pulls/comments/117715117","pull_request_review_id":39442707,"id":117715117,"diff_hunk":"@@ -0,0 +1,39 @@\n+const React = require('react');\n+const PropTypes = require('prop-types');\n+const channel = require('./channel');\n+\n+function createWithTheme(CHANNEL = channel) {\n+  return Component =>\n+    class withTheme extends React.Component {\n+      static contextTypes = {\n+        [CHANNEL]: PropTypes.func,\n+      };\n+\n+      componentWillMount() {\n+        if (!this.context[CHANNEL]) {\n+          throw new Error(","path":"src/create-with-theme.js","position":14,"original_position":14,"commit_id":"268a88db8dd9e5ac7e8fa307bf1bee82afb9d609","original_commit_id":"af0faaa080d263595b74cdb9399b19e7f22a6535","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars2.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"body":"@mxstbr yes, thats what i would like to get as well.\r\n@kof isnt it there?","created_at":"2017-05-22T10:44:02Z","updated_at":"2017-05-22T10:44:02Z","html_url":"https://github.com/iamstarkov/theming/pull/2#discussion_r117715117","pull_request_url":"https://api.github.com/repos/iamstarkov/theming/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/iamstarkov/theming/pulls/comments/117715117"},"html":{"href":"https://github.com/iamstarkov/theming/pull/2#discussion_r117715117"},"pull_request":{"href":"https://api.github.com/repos/iamstarkov/theming/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/iamstarkov/theming/pulls/2","id":121646228,"html_url":"https://github.com/iamstarkov/theming/pull/2","diff_url":"https://github.com/iamstarkov/theming/pull/2.diff","patch_url":"https://github.com/iamstarkov/theming/pull/2.patch","issue_url":"https://api.github.com/repos/iamstarkov/theming/issues/2","number":2,"state":"open","locked":false,"title":"docs, tests and implementation review","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars2.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"body":"hey, @kof, @mxstbr, @nathanmarks, @kentcdodds.\r\n\r\nI extracted theming from styled-components into separate package, wrote extensive documentation, covered every line and every case with tests. I also thought, that some solutions might need to use custom channel, so i added that as well.\r\n\r\nSo you might be interested in it","created_at":"2017-05-21T03:14:36Z","updated_at":"2017-05-22T10:44:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e985204bcdaa1e8a607012c418419f44d9436302","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/iamstarkov/theming/pulls/2/commits","review_comments_url":"https://api.github.com/repos/iamstarkov/theming/pulls/2/comments","review_comment_url":"https://api.github.com/repos/iamstarkov/theming/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iamstarkov/theming/issues/2/comments","statuses_url":"https://api.github.com/repos/iamstarkov/theming/statuses/268a88db8dd9e5ac7e8fa307bf1bee82afb9d609","head":{"label":"iamstarkov:dev-review","ref":"dev-review","sha":"268a88db8dd9e5ac7e8fa307bf1bee82afb9d609","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars2.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"repo":{"id":89290601,"name":"theming","full_name":"iamstarkov/theming","owner":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars2.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamstarkov/theming","description":"React High-Order Components for theming","fork":false,"url":"https://api.github.com/repos/iamstarkov/theming","forks_url":"https://api.github.com/repos/iamstarkov/theming/forks","keys_url":"https://api.github.com/repos/iamstarkov/theming/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamstarkov/theming/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamstarkov/theming/teams","hooks_url":"https://api.github.com/repos/iamstarkov/theming/hooks","issue_events_url":"https://api.github.com/repos/iamstarkov/theming/issues/events{/number}","events_url":"https://api.github.com/repos/iamstarkov/theming/events","assignees_url":"https://api.github.com/repos/iamstarkov/theming/assignees{/user}","branches_url":"https://api.github.com/repos/iamstarkov/theming/branches{/branch}","tags_url":"https://api.github.com/repos/iamstarkov/theming/tags","blobs_url":"https://api.github.com/repos/iamstarkov/theming/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamstarkov/theming/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamstarkov/theming/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamstarkov/theming/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamstarkov/theming/statuses/{sha}","languages_url":"https://api.github.com/repos/iamstarkov/theming/languages","stargazers_url":"https://api.github.com/repos/iamstarkov/theming/stargazers","contributors_url":"https://api.github.com/repos/iamstarkov/theming/contributors","subscribers_url":"https://api.github.com/repos/iamstarkov/theming/subscribers","subscription_url":"https://api.github.com/repos/iamstarkov/theming/subscription","commits_url":"https://api.github.com/repos/iamstarkov/theming/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamstarkov/theming/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamstarkov/theming/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamstarkov/theming/issues/comments{/number}","contents_url":"https://api.github.com/repos/iamstarkov/theming/contents/{+path}","compare_url":"https://api.github.com/repos/iamstarkov/theming/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamstarkov/theming/merges","archive_url":"https://api.github.com/repos/iamstarkov/theming/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamstarkov/theming/downloads","issues_url":"https://api.github.com/repos/iamstarkov/theming/issues{/number}","pulls_url":"https://api.github.com/repos/iamstarkov/theming/pulls{/number}","milestones_url":"https://api.github.com/repos/iamstarkov/theming/milestones{/number}","notifications_url":"https://api.github.com/repos/iamstarkov/theming/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamstarkov/theming/labels{/name}","releases_url":"https://api.github.com/repos/iamstarkov/theming/releases{/id}","deployments_url":"https://api.github.com/repos/iamstarkov/theming/deployments","created_at":"2017-04-24T21:53:51Z","updated_at":"2017-05-22T10:27:26Z","pushed_at":"2017-05-22T10:32:41Z","git_url":"git://github.com/iamstarkov/theming.git","ssh_url":"git@github.com:iamstarkov/theming.git","clone_url":"https://github.com/iamstarkov/theming.git","svn_url":"https://github.com/iamstarkov/theming","homepage":"","size":97,"stargazers_count":9,"watchers_count":9,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":9,"default_branch":"master"}},"base":{"label":"iamstarkov:master","ref":"master","sha":"cf22aa5389d21a4680288cb3be6ba6a099fb6001","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars2.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"repo":{"id":89290601,"name":"theming","full_name":"iamstarkov/theming","owner":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars2.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamstarkov/theming","description":"React High-Order Components for theming","fork":false,"url":"https://api.github.com/repos/iamstarkov/theming","forks_url":"https://api.github.com/repos/iamstarkov/theming/forks","keys_url":"https://api.github.com/repos/iamstarkov/theming/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamstarkov/theming/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamstarkov/theming/teams","hooks_url":"https://api.github.com/repos/iamstarkov/theming/hooks","issue_events_url":"https://api.github.com/repos/iamstarkov/theming/issues/events{/number}","events_url":"https://api.github.com/repos/iamstarkov/theming/events","assignees_url":"https://api.github.com/repos/iamstarkov/theming/assignees{/user}","branches_url":"https://api.github.com/repos/iamstarkov/theming/branches{/branch}","tags_url":"https://api.github.com/repos/iamstarkov/theming/tags","blobs_url":"https://api.github.com/repos/iamstarkov/theming/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamstarkov/theming/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamstarkov/theming/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamstarkov/theming/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamstarkov/theming/statuses/{sha}","languages_url":"https://api.github.com/repos/iamstarkov/theming/languages","stargazers_url":"https://api.github.com/repos/iamstarkov/theming/stargazers","contributors_url":"https://api.github.com/repos/iamstarkov/theming/contributors","subscribers_url":"https://api.github.com/repos/iamstarkov/theming/subscribers","subscription_url":"https://api.github.com/repos/iamstarkov/theming/subscription","commits_url":"https://api.github.com/repos/iamstarkov/theming/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamstarkov/theming/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamstarkov/theming/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamstarkov/theming/issues/comments{/number}","contents_url":"https://api.github.com/repos/iamstarkov/theming/contents/{+path}","compare_url":"https://api.github.com/repos/iamstarkov/theming/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamstarkov/theming/merges","archive_url":"https://api.github.com/repos/iamstarkov/theming/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamstarkov/theming/downloads","issues_url":"https://api.github.com/repos/iamstarkov/theming/issues{/number}","pulls_url":"https://api.github.com/repos/iamstarkov/theming/pulls{/number}","milestones_url":"https://api.github.com/repos/iamstarkov/theming/milestones{/number}","notifications_url":"https://api.github.com/repos/iamstarkov/theming/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamstarkov/theming/labels{/name}","releases_url":"https://api.github.com/repos/iamstarkov/theming/releases{/id}","deployments_url":"https://api.github.com/repos/iamstarkov/theming/deployments","created_at":"2017-04-24T21:53:51Z","updated_at":"2017-05-22T10:27:26Z","pushed_at":"2017-05-22T10:32:41Z","git_url":"git://github.com/iamstarkov/theming.git","ssh_url":"git@github.com:iamstarkov/theming.git","clone_url":"https://github.com/iamstarkov/theming.git","svn_url":"https://github.com/iamstarkov/theming","homepage":"","size":97,"stargazers_count":9,"watchers_count":9,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iamstarkov/theming/pulls/2"},"html":{"href":"https://github.com/iamstarkov/theming/pull/2"},"issue":{"href":"https://api.github.com/repos/iamstarkov/theming/issues/2"},"comments":{"href":"https://api.github.com/repos/iamstarkov/theming/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/iamstarkov/theming/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/iamstarkov/theming/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iamstarkov/theming/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/iamstarkov/theming/statuses/268a88db8dd9e5ac7e8fa307bf1bee82afb9d609"}}}}
{"actor":{"display_login":"iamstarkov"}}