{"action":"closed","number":95,"pull_request":{"url":"https://api.github.com/repos/everydayhero/constructicon/pulls/95","id":158010683,"html_url":"https://github.com/everydayhero/constructicon/pull/95","diff_url":"https://github.com/everydayhero/constructicon/pull/95.diff","patch_url":"https://github.com/everydayhero/constructicon/pull/95.patch","issue_url":"https://api.github.com/repos/everydayhero/constructicon/issues/95","number":95,"state":"closed","locked":false,"title":" Add onChange listener to withForm HOC","user":{"login":"rowanhogan","id":729085,"avatar_url":"https://avatars2.githubusercontent.com/u/729085?v=4","gravatar_id":"","url":"https://api.github.com/users/rowanhogan","html_url":"https://github.com/rowanhogan","followers_url":"https://api.github.com/users/rowanhogan/followers","following_url":"https://api.github.com/users/rowanhogan/following{/other_user}","gists_url":"https://api.github.com/users/rowanhogan/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanhogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanhogan/subscriptions","organizations_url":"https://api.github.com/users/rowanhogan/orgs","repos_url":"https://api.github.com/users/rowanhogan/repos","events_url":"https://api.github.com/users/rowanhogan/events{/privacy}","received_events_url":"https://api.github.com/users/rowanhogan/received_events","type":"User","site_admin":false},"body":"Simplified example usage:\r\n\r\n```javascript\r\nclass Parent extends Component {\r\n  handleChange (form, childIndex) {\r\n    const { children } = this.state\r\n\r\n    children[childIndex] = form.values\r\n\r\n    this.setState({ children })\r\n  }\r\n\r\n  render () {\r\n    const { children } = this.state\r\n\r\n    return (\r\n      <div>\r\n        {children.map((child, index) => (\r\n          <Child\r\n            index={index}\r\n            child={child}\r\n            onChange={(form) => this.handleChange(form, index)}\r\n          />\r\n        ))}\r\n      </div>\r\n    )\r\n  }\r\n}\r\n\r\nclass Child extends Component {\r\n  componentWillMount () {\r\n    const { child, form } = this.props\r\n\r\n    form.updateValues(child)\r\n  }\r\n\r\n  // etc...\r\n}\r\n```","created_at":"2017-12-13T06:08:44Z","updated_at":"2017-12-14T03:01:34Z","closed_at":"2017-12-14T03:01:34Z","merged_at":"2017-12-14T03:01:34Z","merge_commit_sha":"91eca65460c3989d85321ffdbd09336ee45a70b8","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/everydayhero/constructicon/pulls/95/commits","review_comments_url":"https://api.github.com/repos/everydayhero/constructicon/pulls/95/comments","review_comment_url":"https://api.github.com/repos/everydayhero/constructicon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/everydayhero/constructicon/issues/95/comments","statuses_url":"https://api.github.com/repos/everydayhero/constructicon/statuses/5bfe5244b9952becc662d215a2e8318384420a17","head":{"label":"everydayhero:withform-onchange-func","ref":"withform-onchange-func","sha":"5bfe5244b9952becc662d215a2e8318384420a17","user":{"login":"everydayhero","id":558383,"avatar_url":"https://avatars1.githubusercontent.com/u/558383?v=4","gravatar_id":"","url":"https://api.github.com/users/everydayhero","html_url":"https://github.com/everydayhero","followers_url":"https://api.github.com/users/everydayhero/followers","following_url":"https://api.github.com/users/everydayhero/following{/other_user}","gists_url":"https://api.github.com/users/everydayhero/gists{/gist_id}","starred_url":"https://api.github.com/users/everydayhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everydayhero/subscriptions","organizations_url":"https://api.github.com/users/everydayhero/orgs","repos_url":"https://api.github.com/users/everydayhero/repos","events_url":"https://api.github.com/users/everydayhero/events{/privacy}","received_events_url":"https://api.github.com/users/everydayhero/received_events","type":"Organization","site_admin":false},"repo":{"id":77988633,"name":"constructicon","full_name":"everydayhero/constructicon","owner":{"login":"everydayhero","id":558383,"avatar_url":"https://avatars1.githubusercontent.com/u/558383?v=4","gravatar_id":"","url":"https://api.github.com/users/everydayhero","html_url":"https://github.com/everydayhero","followers_url":"https://api.github.com/users/everydayhero/followers","following_url":"https://api.github.com/users/everydayhero/following{/other_user}","gists_url":"https://api.github.com/users/everydayhero/gists{/gist_id}","starred_url":"https://api.github.com/users/everydayhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everydayhero/subscriptions","organizations_url":"https://api.github.com/users/everydayhero/orgs","repos_url":"https://api.github.com/users/everydayhero/repos","events_url":"https://api.github.com/users/everydayhero/events{/privacy}","received_events_url":"https://api.github.com/users/everydayhero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everydayhero/constructicon","description":"A collection of reusable react components for Professional Services","fork":false,"url":"https://api.github.com/repos/everydayhero/constructicon","forks_url":"https://api.github.com/repos/everydayhero/constructicon/forks","keys_url":"https://api.github.com/repos/everydayhero/constructicon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everydayhero/constructicon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everydayhero/constructicon/teams","hooks_url":"https://api.github.com/repos/everydayhero/constructicon/hooks","issue_events_url":"https://api.github.com/repos/everydayhero/constructicon/issues/events{/number}","events_url":"https://api.github.com/repos/everydayhero/constructicon/events","assignees_url":"https://api.github.com/repos/everydayhero/constructicon/assignees{/user}","branches_url":"https://api.github.com/repos/everydayhero/constructicon/branches{/branch}","tags_url":"https://api.github.com/repos/everydayhero/constructicon/tags","blobs_url":"https://api.github.com/repos/everydayhero/constructicon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everydayhero/constructicon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everydayhero/constructicon/git/refs{/sha}","trees_url":"https://api.github.com/repos/everydayhero/constructicon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everydayhero/constructicon/statuses/{sha}","languages_url":"https://api.github.com/repos/everydayhero/constructicon/languages","stargazers_url":"https://api.github.com/repos/everydayhero/constructicon/stargazers","contributors_url":"https://api.github.com/repos/everydayhero/constructicon/contributors","subscribers_url":"https://api.github.com/repos/everydayhero/constructicon/subscribers","subscription_url":"https://api.github.com/repos/everydayhero/constructicon/subscription","commits_url":"https://api.github.com/repos/everydayhero/constructicon/commits{/sha}","git_commits_url":"https://api.github.com/repos/everydayhero/constructicon/git/commits{/sha}","comments_url":"https://api.github.com/repos/everydayhero/constructicon/comments{/number}","issue_comment_url":"https://api.github.com/repos/everydayhero/constructicon/issues/comments{/number}","contents_url":"https://api.github.com/repos/everydayhero/constructicon/contents/{+path}","compare_url":"https://api.github.com/repos/everydayhero/constructicon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everydayhero/constructicon/merges","archive_url":"https://api.github.com/repos/everydayhero/constructicon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everydayhero/constructicon/downloads","issues_url":"https://api.github.com/repos/everydayhero/constructicon/issues{/number}","pulls_url":"https://api.github.com/repos/everydayhero/constructicon/pulls{/number}","milestones_url":"https://api.github.com/repos/everydayhero/constructicon/milestones{/number}","notifications_url":"https://api.github.com/repos/everydayhero/constructicon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everydayhero/constructicon/labels{/name}","releases_url":"https://api.github.com/repos/everydayhero/constructicon/releases{/id}","deployments_url":"https://api.github.com/repos/everydayhero/constructicon/deployments","created_at":"2017-01-04T06:38:22Z","updated_at":"2017-12-01T08:35:20Z","pushed_at":"2017-12-14T03:01:34Z","git_url":"git://github.com/everydayhero/constructicon.git","ssh_url":"git@github.com:everydayhero/constructicon.git","clone_url":"https://github.com/everydayhero/constructicon.git","svn_url":"https://github.com/everydayhero/constructicon","homepage":"https://everydayhero.github.io/constructicon","size":1705,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":7,"open_issues":6,"watchers":17,"default_branch":"master"}},"base":{"label":"everydayhero:master","ref":"master","sha":"19d87865f4df48ec247310c83b00cd01ed91f5ce","user":{"login":"everydayhero","id":558383,"avatar_url":"https://avatars1.githubusercontent.com/u/558383?v=4","gravatar_id":"","url":"https://api.github.com/users/everydayhero","html_url":"https://github.com/everydayhero","followers_url":"https://api.github.com/users/everydayhero/followers","following_url":"https://api.github.com/users/everydayhero/following{/other_user}","gists_url":"https://api.github.com/users/everydayhero/gists{/gist_id}","starred_url":"https://api.github.com/users/everydayhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everydayhero/subscriptions","organizations_url":"https://api.github.com/users/everydayhero/orgs","repos_url":"https://api.github.com/users/everydayhero/repos","events_url":"https://api.github.com/users/everydayhero/events{/privacy}","received_events_url":"https://api.github.com/users/everydayhero/received_events","type":"Organization","site_admin":false},"repo":{"id":77988633,"name":"constructicon","full_name":"everydayhero/constructicon","owner":{"login":"everydayhero","id":558383,"avatar_url":"https://avatars1.githubusercontent.com/u/558383?v=4","gravatar_id":"","url":"https://api.github.com/users/everydayhero","html_url":"https://github.com/everydayhero","followers_url":"https://api.github.com/users/everydayhero/followers","following_url":"https://api.github.com/users/everydayhero/following{/other_user}","gists_url":"https://api.github.com/users/everydayhero/gists{/gist_id}","starred_url":"https://api.github.com/users/everydayhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everydayhero/subscriptions","organizations_url":"https://api.github.com/users/everydayhero/orgs","repos_url":"https://api.github.com/users/everydayhero/repos","events_url":"https://api.github.com/users/everydayhero/events{/privacy}","received_events_url":"https://api.github.com/users/everydayhero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everydayhero/constructicon","description":"A collection of reusable react components for Professional Services","fork":false,"url":"https://api.github.com/repos/everydayhero/constructicon","forks_url":"https://api.github.com/repos/everydayhero/constructicon/forks","keys_url":"https://api.github.com/repos/everydayhero/constructicon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everydayhero/constructicon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everydayhero/constructicon/teams","hooks_url":"https://api.github.com/repos/everydayhero/constructicon/hooks","issue_events_url":"https://api.github.com/repos/everydayhero/constructicon/issues/events{/number}","events_url":"https://api.github.com/repos/everydayhero/constructicon/events","assignees_url":"https://api.github.com/repos/everydayhero/constructicon/assignees{/user}","branches_url":"https://api.github.com/repos/everydayhero/constructicon/branches{/branch}","tags_url":"https://api.github.com/repos/everydayhero/constructicon/tags","blobs_url":"https://api.github.com/repos/everydayhero/constructicon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everydayhero/constructicon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everydayhero/constructicon/git/refs{/sha}","trees_url":"https://api.github.com/repos/everydayhero/constructicon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everydayhero/constructicon/statuses/{sha}","languages_url":"https://api.github.com/repos/everydayhero/constructicon/languages","stargazers_url":"https://api.github.com/repos/everydayhero/constructicon/stargazers","contributors_url":"https://api.github.com/repos/everydayhero/constructicon/contributors","subscribers_url":"https://api.github.com/repos/everydayhero/constructicon/subscribers","subscription_url":"https://api.github.com/repos/everydayhero/constructicon/subscription","commits_url":"https://api.github.com/repos/everydayhero/constructicon/commits{/sha}","git_commits_url":"https://api.github.com/repos/everydayhero/constructicon/git/commits{/sha}","comments_url":"https://api.github.com/repos/everydayhero/constructicon/comments{/number}","issue_comment_url":"https://api.github.com/repos/everydayhero/constructicon/issues/comments{/number}","contents_url":"https://api.github.com/repos/everydayhero/constructicon/contents/{+path}","compare_url":"https://api.github.com/repos/everydayhero/constructicon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everydayhero/constructicon/merges","archive_url":"https://api.github.com/repos/everydayhero/constructicon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everydayhero/constructicon/downloads","issues_url":"https://api.github.com/repos/everydayhero/constructicon/issues{/number}","pulls_url":"https://api.github.com/repos/everydayhero/constructicon/pulls{/number}","milestones_url":"https://api.github.com/repos/everydayhero/constructicon/milestones{/number}","notifications_url":"https://api.github.com/repos/everydayhero/constructicon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everydayhero/constructicon/labels{/name}","releases_url":"https://api.github.com/repos/everydayhero/constructicon/releases{/id}","deployments_url":"https://api.github.com/repos/everydayhero/constructicon/deployments","created_at":"2017-01-04T06:38:22Z","updated_at":"2017-12-01T08:35:20Z","pushed_at":"2017-12-14T03:01:34Z","git_url":"git://github.com/everydayhero/constructicon.git","ssh_url":"git@github.com:everydayhero/constructicon.git","clone_url":"https://github.com/everydayhero/constructicon.git","svn_url":"https://github.com/everydayhero/constructicon","homepage":"https://everydayhero.github.io/constructicon","size":1705,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":7,"open_issues":6,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/everydayhero/constructicon/pulls/95"},"html":{"href":"https://github.com/everydayhero/constructicon/pull/95"},"issue":{"href":"https://api.github.com/repos/everydayhero/constructicon/issues/95"},"comments":{"href":"https://api.github.com/repos/everydayhero/constructicon/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/everydayhero/constructicon/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/everydayhero/constructicon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/everydayhero/constructicon/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/everydayhero/constructicon/statuses/5bfe5244b9952becc662d215a2e8318384420a17"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"danhenderson","id":1445686,"avatar_url":"https://avatars2.githubusercontent.com/u/1445686?v=4","gravatar_id":"","url":"https://api.github.com/users/danhenderson","html_url":"https://github.com/danhenderson","followers_url":"https://api.github.com/users/danhenderson/followers","following_url":"https://api.github.com/users/danhenderson/following{/other_user}","gists_url":"https://api.github.com/users/danhenderson/gists{/gist_id}","starred_url":"https://api.github.com/users/danhenderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danhenderson/subscriptions","organizations_url":"https://api.github.com/users/danhenderson/orgs","repos_url":"https://api.github.com/users/danhenderson/repos","events_url":"https://api.github.com/users/danhenderson/events{/privacy}","received_events_url":"https://api.github.com/users/danhenderson/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":145,"deletions":7,"changed_files":7}}
{"actor":{"display_login":"danhenderson"}}