{"action":"created","comment":{"url":"https://api.github.com/repos/Label305/Bonn-Form/pulls/comments/113113764","pull_request_review_id":34475727,"id":113113764,"diff_hunk":"@@ -59,10 +62,11 @@ export function Field<Props>(WrappedComponent: IncomingField<Props>,\n         }\n \n         public render() {\n+            const fieldState = this.props.form.getFieldState(this.getFieldName());","path":"src/composers/field.tsx","position":38,"original_position":38,"commit_id":"af009d8b1710421d66593f05fd38f9a68e1a24ed","original_commit_id":"af009d8b1710421d66593f05fd38f9a68e1a24ed","user":{"login":"JBlaak","id":410113,"avatar_url":"https://avatars0.githubusercontent.com/u/410113?v=3","gravatar_id":"","url":"https://api.github.com/users/JBlaak","html_url":"https://github.com/JBlaak","followers_url":"https://api.github.com/users/JBlaak/followers","following_url":"https://api.github.com/users/JBlaak/following{/other_user}","gists_url":"https://api.github.com/users/JBlaak/gists{/gist_id}","starred_url":"https://api.github.com/users/JBlaak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JBlaak/subscriptions","organizations_url":"https://api.github.com/users/JBlaak/orgs","repos_url":"https://api.github.com/users/JBlaak/repos","events_url":"https://api.github.com/users/JBlaak/events{/privacy}","received_events_url":"https://api.github.com/users/JBlaak/received_events","type":"User","site_admin":false},"body":"Ehm, this is already what we're doing.. I just say we remove the `state` from the `Field` and `Listener` components and introduce a `this.forceUpdate()` within the `listenForFieldChange` callback. Then in the `render` we just fetch the values we need.","created_at":"2017-04-25T06:11:33Z","updated_at":"2017-04-25T06:11:33Z","html_url":"https://github.com/Label305/Bonn-Form/pull/6#discussion_r113113764","pull_request_url":"https://api.github.com/repos/Label305/Bonn-Form/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/Label305/Bonn-Form/pulls/comments/113113764"},"html":{"href":"https://github.com/Label305/Bonn-Form/pull/6#discussion_r113113764"},"pull_request":{"href":"https://api.github.com/repos/Label305/Bonn-Form/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Label305/Bonn-Form/pulls/6","id":117102053,"html_url":"https://github.com/Label305/Bonn-Form/pull/6","diff_url":"https://github.com/Label305/Bonn-Form/pull/6.diff","patch_url":"https://github.com/Label305/Bonn-Form/pull/6.patch","issue_url":"https://api.github.com/repos/Label305/Bonn-Form/issues/6","number":6,"state":"open","locked":false,"title":"Keep track if a field is pristine or not.","user":{"login":"DJWassink","id":1822404,"avatar_url":"https://avatars0.githubusercontent.com/u/1822404?v=3","gravatar_id":"","url":"https://api.github.com/users/DJWassink","html_url":"https://github.com/DJWassink","followers_url":"https://api.github.com/users/DJWassink/followers","following_url":"https://api.github.com/users/DJWassink/following{/other_user}","gists_url":"https://api.github.com/users/DJWassink/gists{/gist_id}","starred_url":"https://api.github.com/users/DJWassink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DJWassink/subscriptions","organizations_url":"https://api.github.com/users/DJWassink/orgs","repos_url":"https://api.github.com/users/DJWassink/repos","events_url":"https://api.github.com/users/DJWassink/events{/privacy}","received_events_url":"https://api.github.com/users/DJWassink/received_events","type":"User","site_admin":false},"body":":tada: 🌮 ","created_at":"2017-04-22T09:08:13Z","updated_at":"2017-04-25T06:11:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ff1e1499c66bb3f695e5c461bae32f7f055e391","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Label305/Bonn-Form/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Label305/Bonn-Form/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Label305/Bonn-Form/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Label305/Bonn-Form/issues/6/comments","statuses_url":"https://api.github.com/repos/Label305/Bonn-Form/statuses/af009d8b1710421d66593f05fd38f9a68e1a24ed","head":{"label":"Label305:feature/pristine","ref":"feature/pristine","sha":"af009d8b1710421d66593f05fd38f9a68e1a24ed","user":{"login":"Label305","id":411527,"avatar_url":"https://avatars3.githubusercontent.com/u/411527?v=3","gravatar_id":"","url":"https://api.github.com/users/Label305","html_url":"https://github.com/Label305","followers_url":"https://api.github.com/users/Label305/followers","following_url":"https://api.github.com/users/Label305/following{/other_user}","gists_url":"https://api.github.com/users/Label305/gists{/gist_id}","starred_url":"https://api.github.com/users/Label305/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Label305/subscriptions","organizations_url":"https://api.github.com/users/Label305/orgs","repos_url":"https://api.github.com/users/Label305/repos","events_url":"https://api.github.com/users/Label305/events{/privacy}","received_events_url":"https://api.github.com/users/Label305/received_events","type":"Organization","site_admin":false},"repo":{"id":87464933,"name":"Bonn-Form","full_name":"Label305/Bonn-Form","owner":{"login":"Label305","id":411527,"avatar_url":"https://avatars3.githubusercontent.com/u/411527?v=3","gravatar_id":"","url":"https://api.github.com/users/Label305","html_url":"https://github.com/Label305","followers_url":"https://api.github.com/users/Label305/followers","following_url":"https://api.github.com/users/Label305/following{/other_user}","gists_url":"https://api.github.com/users/Label305/gists{/gist_id}","starred_url":"https://api.github.com/users/Label305/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Label305/subscriptions","organizations_url":"https://api.github.com/users/Label305/orgs","repos_url":"https://api.github.com/users/Label305/repos","events_url":"https://api.github.com/users/Label305/events{/privacy}","received_events_url":"https://api.github.com/users/Label305/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Label305/Bonn-Form","description":"[WIP] Form handling for React with size in mind","fork":false,"url":"https://api.github.com/repos/Label305/Bonn-Form","forks_url":"https://api.github.com/repos/Label305/Bonn-Form/forks","keys_url":"https://api.github.com/repos/Label305/Bonn-Form/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Label305/Bonn-Form/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Label305/Bonn-Form/teams","hooks_url":"https://api.github.com/repos/Label305/Bonn-Form/hooks","issue_events_url":"https://api.github.com/repos/Label305/Bonn-Form/issues/events{/number}","events_url":"https://api.github.com/repos/Label305/Bonn-Form/events","assignees_url":"https://api.github.com/repos/Label305/Bonn-Form/assignees{/user}","branches_url":"https://api.github.com/repos/Label305/Bonn-Form/branches{/branch}","tags_url":"https://api.github.com/repos/Label305/Bonn-Form/tags","blobs_url":"https://api.github.com/repos/Label305/Bonn-Form/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Label305/Bonn-Form/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Label305/Bonn-Form/git/refs{/sha}","trees_url":"https://api.github.com/repos/Label305/Bonn-Form/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Label305/Bonn-Form/statuses/{sha}","languages_url":"https://api.github.com/repos/Label305/Bonn-Form/languages","stargazers_url":"https://api.github.com/repos/Label305/Bonn-Form/stargazers","contributors_url":"https://api.github.com/repos/Label305/Bonn-Form/contributors","subscribers_url":"https://api.github.com/repos/Label305/Bonn-Form/subscribers","subscription_url":"https://api.github.com/repos/Label305/Bonn-Form/subscription","commits_url":"https://api.github.com/repos/Label305/Bonn-Form/commits{/sha}","git_commits_url":"https://api.github.com/repos/Label305/Bonn-Form/git/commits{/sha}","comments_url":"https://api.github.com/repos/Label305/Bonn-Form/comments{/number}","issue_comment_url":"https://api.github.com/repos/Label305/Bonn-Form/issues/comments{/number}","contents_url":"https://api.github.com/repos/Label305/Bonn-Form/contents/{+path}","compare_url":"https://api.github.com/repos/Label305/Bonn-Form/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Label305/Bonn-Form/merges","archive_url":"https://api.github.com/repos/Label305/Bonn-Form/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Label305/Bonn-Form/downloads","issues_url":"https://api.github.com/repos/Label305/Bonn-Form/issues{/number}","pulls_url":"https://api.github.com/repos/Label305/Bonn-Form/pulls{/number}","milestones_url":"https://api.github.com/repos/Label305/Bonn-Form/milestones{/number}","notifications_url":"https://api.github.com/repos/Label305/Bonn-Form/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Label305/Bonn-Form/labels{/name}","releases_url":"https://api.github.com/repos/Label305/Bonn-Form/releases{/id}","deployments_url":"https://api.github.com/repos/Label305/Bonn-Form/deployments","created_at":"2017-04-06T19:03:34Z","updated_at":"2017-04-20T13:55:28Z","pushed_at":"2017-04-23T19:44:16Z","git_url":"git://github.com/Label305/Bonn-Form.git","ssh_url":"git@github.com:Label305/Bonn-Form.git","clone_url":"https://github.com/Label305/Bonn-Form.git","svn_url":"https://github.com/Label305/Bonn-Form","homepage":"","size":63,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"Label305:master","ref":"master","sha":"667a986231f9195e81fd0762850b27385b2b33da","user":{"login":"Label305","id":411527,"avatar_url":"https://avatars3.githubusercontent.com/u/411527?v=3","gravatar_id":"","url":"https://api.github.com/users/Label305","html_url":"https://github.com/Label305","followers_url":"https://api.github.com/users/Label305/followers","following_url":"https://api.github.com/users/Label305/following{/other_user}","gists_url":"https://api.github.com/users/Label305/gists{/gist_id}","starred_url":"https://api.github.com/users/Label305/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Label305/subscriptions","organizations_url":"https://api.github.com/users/Label305/orgs","repos_url":"https://api.github.com/users/Label305/repos","events_url":"https://api.github.com/users/Label305/events{/privacy}","received_events_url":"https://api.github.com/users/Label305/received_events","type":"Organization","site_admin":false},"repo":{"id":87464933,"name":"Bonn-Form","full_name":"Label305/Bonn-Form","owner":{"login":"Label305","id":411527,"avatar_url":"https://avatars3.githubusercontent.com/u/411527?v=3","gravatar_id":"","url":"https://api.github.com/users/Label305","html_url":"https://github.com/Label305","followers_url":"https://api.github.com/users/Label305/followers","following_url":"https://api.github.com/users/Label305/following{/other_user}","gists_url":"https://api.github.com/users/Label305/gists{/gist_id}","starred_url":"https://api.github.com/users/Label305/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Label305/subscriptions","organizations_url":"https://api.github.com/users/Label305/orgs","repos_url":"https://api.github.com/users/Label305/repos","events_url":"https://api.github.com/users/Label305/events{/privacy}","received_events_url":"https://api.github.com/users/Label305/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Label305/Bonn-Form","description":"[WIP] Form handling for React with size in mind","fork":false,"url":"https://api.github.com/repos/Label305/Bonn-Form","forks_url":"https://api.github.com/repos/Label305/Bonn-Form/forks","keys_url":"https://api.github.com/repos/Label305/Bonn-Form/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Label305/Bonn-Form/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Label305/Bonn-Form/teams","hooks_url":"https://api.github.com/repos/Label305/Bonn-Form/hooks","issue_events_url":"https://api.github.com/repos/Label305/Bonn-Form/issues/events{/number}","events_url":"https://api.github.com/repos/Label305/Bonn-Form/events","assignees_url":"https://api.github.com/repos/Label305/Bonn-Form/assignees{/user}","branches_url":"https://api.github.com/repos/Label305/Bonn-Form/branches{/branch}","tags_url":"https://api.github.com/repos/Label305/Bonn-Form/tags","blobs_url":"https://api.github.com/repos/Label305/Bonn-Form/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Label305/Bonn-Form/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Label305/Bonn-Form/git/refs{/sha}","trees_url":"https://api.github.com/repos/Label305/Bonn-Form/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Label305/Bonn-Form/statuses/{sha}","languages_url":"https://api.github.com/repos/Label305/Bonn-Form/languages","stargazers_url":"https://api.github.com/repos/Label305/Bonn-Form/stargazers","contributors_url":"https://api.github.com/repos/Label305/Bonn-Form/contributors","subscribers_url":"https://api.github.com/repos/Label305/Bonn-Form/subscribers","subscription_url":"https://api.github.com/repos/Label305/Bonn-Form/subscription","commits_url":"https://api.github.com/repos/Label305/Bonn-Form/commits{/sha}","git_commits_url":"https://api.github.com/repos/Label305/Bonn-Form/git/commits{/sha}","comments_url":"https://api.github.com/repos/Label305/Bonn-Form/comments{/number}","issue_comment_url":"https://api.github.com/repos/Label305/Bonn-Form/issues/comments{/number}","contents_url":"https://api.github.com/repos/Label305/Bonn-Form/contents/{+path}","compare_url":"https://api.github.com/repos/Label305/Bonn-Form/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Label305/Bonn-Form/merges","archive_url":"https://api.github.com/repos/Label305/Bonn-Form/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Label305/Bonn-Form/downloads","issues_url":"https://api.github.com/repos/Label305/Bonn-Form/issues{/number}","pulls_url":"https://api.github.com/repos/Label305/Bonn-Form/pulls{/number}","milestones_url":"https://api.github.com/repos/Label305/Bonn-Form/milestones{/number}","notifications_url":"https://api.github.com/repos/Label305/Bonn-Form/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Label305/Bonn-Form/labels{/name}","releases_url":"https://api.github.com/repos/Label305/Bonn-Form/releases{/id}","deployments_url":"https://api.github.com/repos/Label305/Bonn-Form/deployments","created_at":"2017-04-06T19:03:34Z","updated_at":"2017-04-20T13:55:28Z","pushed_at":"2017-04-23T19:44:16Z","git_url":"git://github.com/Label305/Bonn-Form.git","ssh_url":"git@github.com:Label305/Bonn-Form.git","clone_url":"https://github.com/Label305/Bonn-Form.git","svn_url":"https://github.com/Label305/Bonn-Form","homepage":"","size":63,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Label305/Bonn-Form/pulls/6"},"html":{"href":"https://github.com/Label305/Bonn-Form/pull/6"},"issue":{"href":"https://api.github.com/repos/Label305/Bonn-Form/issues/6"},"comments":{"href":"https://api.github.com/repos/Label305/Bonn-Form/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Label305/Bonn-Form/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Label305/Bonn-Form/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Label305/Bonn-Form/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Label305/Bonn-Form/statuses/af009d8b1710421d66593f05fd38f9a68e1a24ed"}}}}
{"actor":{"display_login":"JBlaak"}}