{"action":"opened","number":106,"pull_request":{"url":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/106","id":34594588,"html_url":"https://github.com/slamdata/purescript-halogen/pull/106","diff_url":"https://github.com/slamdata/purescript-halogen/pull/106.diff","patch_url":"https://github.com/slamdata/purescript-halogen/pull/106.patch","issue_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/106","number":106,"state":"open","locked":false,"title":"Remove Widget, add post-render hooks","user":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"body":"/cc @jdegoes @cryogenian @garyb @puffnfresh\r\n\r\nThis PR is a bit more drastic. @garyb and I were discussing widgets, and this demonstrates an idea we were considering - since widgets are effectful, instead of trying to shoehorn them into the pure world of `Component`, it makes sense to provide a low-level, imperative escape hatch to deal with them. It's not pretty, but widgets aren't either, and it fits with the \"push effects to the application boundary\" approach. \r\n\r\nNamely, I've removed `Widget`, and added support for a \"post-render hook\" to `runUIWith`. Widgets can be synchronized in the post-render method after every patch is rendered.\r\n\r\nThe Ace example shows an example of using `data-` attributes to synchronize the Ace widget state with the state of the component. \r\n\r\n@jdegoes I think this is more in line with the \"big record of widget state\" approach that we discussed in #84.","created_at":"2015-05-03T01:04:15Z","updated_at":"2015-05-03T01:04:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d19a3bf3a3c0ff75bb5d38bfe8469c81a6acdeb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/106/commits","review_comments_url":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/106/comments","review_comment_url":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/106/comments","statuses_url":"https://api.github.com/repos/slamdata/purescript-halogen/statuses/d8ea8b6ec9c28d32301fadb8b6816b04115050cb","head":{"label":"slamdata:no-widgets","ref":"no-widgets","sha":"d8ea8b6ec9c28d32301fadb8b6816b04115050cb","user":{"login":"slamdata","id":5385602,"avatar_url":"https://avatars.githubusercontent.com/u/5385602?v=3","gravatar_id":"","url":"https://api.github.com/users/slamdata","html_url":"https://github.com/slamdata","followers_url":"https://api.github.com/users/slamdata/followers","following_url":"https://api.github.com/users/slamdata/following{/other_user}","gists_url":"https://api.github.com/users/slamdata/gists{/gist_id}","starred_url":"https://api.github.com/users/slamdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slamdata/subscriptions","organizations_url":"https://api.github.com/users/slamdata/orgs","repos_url":"https://api.github.com/users/slamdata/repos","events_url":"https://api.github.com/users/slamdata/events{/privacy}","received_events_url":"https://api.github.com/users/slamdata/received_events","type":"Organization","site_admin":false},"repo":{"id":31337302,"name":"purescript-halogen","full_name":"slamdata/purescript-halogen","owner":{"login":"slamdata","id":5385602,"avatar_url":"https://avatars.githubusercontent.com/u/5385602?v=3","gravatar_id":"","url":"https://api.github.com/users/slamdata","html_url":"https://github.com/slamdata","followers_url":"https://api.github.com/users/slamdata/followers","following_url":"https://api.github.com/users/slamdata/following{/other_user}","gists_url":"https://api.github.com/users/slamdata/gists{/gist_id}","starred_url":"https://api.github.com/users/slamdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slamdata/subscriptions","organizations_url":"https://api.github.com/users/slamdata/orgs","repos_url":"https://api.github.com/users/slamdata/repos","events_url":"https://api.github.com/users/slamdata/events{/privacy}","received_events_url":"https://api.github.com/users/slamdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slamdata/purescript-halogen","description":"A declarative, type-safe UI library for PureScript.","fork":false,"url":"https://api.github.com/repos/slamdata/purescript-halogen","forks_url":"https://api.github.com/repos/slamdata/purescript-halogen/forks","keys_url":"https://api.github.com/repos/slamdata/purescript-halogen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slamdata/purescript-halogen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slamdata/purescript-halogen/teams","hooks_url":"https://api.github.com/repos/slamdata/purescript-halogen/hooks","issue_events_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/events{/number}","events_url":"https://api.github.com/repos/slamdata/purescript-halogen/events","assignees_url":"https://api.github.com/repos/slamdata/purescript-halogen/assignees{/user}","branches_url":"https://api.github.com/repos/slamdata/purescript-halogen/branches{/branch}","tags_url":"https://api.github.com/repos/slamdata/purescript-halogen/tags","blobs_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/refs{/sha}","trees_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slamdata/purescript-halogen/statuses/{sha}","languages_url":"https://api.github.com/repos/slamdata/purescript-halogen/languages","stargazers_url":"https://api.github.com/repos/slamdata/purescript-halogen/stargazers","contributors_url":"https://api.github.com/repos/slamdata/purescript-halogen/contributors","subscribers_url":"https://api.github.com/repos/slamdata/purescript-halogen/subscribers","subscription_url":"https://api.github.com/repos/slamdata/purescript-halogen/subscription","commits_url":"https://api.github.com/repos/slamdata/purescript-halogen/commits{/sha}","git_commits_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/commits{/sha}","comments_url":"https://api.github.com/repos/slamdata/purescript-halogen/comments{/number}","issue_comment_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/comments{/number}","contents_url":"https://api.github.com/repos/slamdata/purescript-halogen/contents/{+path}","compare_url":"https://api.github.com/repos/slamdata/purescript-halogen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slamdata/purescript-halogen/merges","archive_url":"https://api.github.com/repos/slamdata/purescript-halogen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slamdata/purescript-halogen/downloads","issues_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues{/number}","pulls_url":"https://api.github.com/repos/slamdata/purescript-halogen/pulls{/number}","milestones_url":"https://api.github.com/repos/slamdata/purescript-halogen/milestones{/number}","notifications_url":"https://api.github.com/repos/slamdata/purescript-halogen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slamdata/purescript-halogen/labels{/name}","releases_url":"https://api.github.com/repos/slamdata/purescript-halogen/releases{/id}","created_at":"2015-02-25T21:44:09Z","updated_at":"2015-05-02T21:04:49Z","pushed_at":"2015-05-03T01:04:15Z","git_url":"git://github.com/slamdata/purescript-halogen.git","ssh_url":"git@github.com:slamdata/purescript-halogen.git","clone_url":"https://github.com/slamdata/purescript-halogen.git","svn_url":"https://github.com/slamdata/purescript-halogen","homepage":null,"size":1542,"stargazers_count":100,"watchers_count":100,"language":"PureScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":13,"forks":8,"open_issues":13,"watchers":100,"default_branch":"master"}},"base":{"label":"slamdata:no-components","ref":"no-components","sha":"62113fdadce9431ca6fcd5c31ff74c04536533e9","user":{"login":"slamdata","id":5385602,"avatar_url":"https://avatars.githubusercontent.com/u/5385602?v=3","gravatar_id":"","url":"https://api.github.com/users/slamdata","html_url":"https://github.com/slamdata","followers_url":"https://api.github.com/users/slamdata/followers","following_url":"https://api.github.com/users/slamdata/following{/other_user}","gists_url":"https://api.github.com/users/slamdata/gists{/gist_id}","starred_url":"https://api.github.com/users/slamdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slamdata/subscriptions","organizations_url":"https://api.github.com/users/slamdata/orgs","repos_url":"https://api.github.com/users/slamdata/repos","events_url":"https://api.github.com/users/slamdata/events{/privacy}","received_events_url":"https://api.github.com/users/slamdata/received_events","type":"Organization","site_admin":false},"repo":{"id":31337302,"name":"purescript-halogen","full_name":"slamdata/purescript-halogen","owner":{"login":"slamdata","id":5385602,"avatar_url":"https://avatars.githubusercontent.com/u/5385602?v=3","gravatar_id":"","url":"https://api.github.com/users/slamdata","html_url":"https://github.com/slamdata","followers_url":"https://api.github.com/users/slamdata/followers","following_url":"https://api.github.com/users/slamdata/following{/other_user}","gists_url":"https://api.github.com/users/slamdata/gists{/gist_id}","starred_url":"https://api.github.com/users/slamdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slamdata/subscriptions","organizations_url":"https://api.github.com/users/slamdata/orgs","repos_url":"https://api.github.com/users/slamdata/repos","events_url":"https://api.github.com/users/slamdata/events{/privacy}","received_events_url":"https://api.github.com/users/slamdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slamdata/purescript-halogen","description":"A declarative, type-safe UI library for PureScript.","fork":false,"url":"https://api.github.com/repos/slamdata/purescript-halogen","forks_url":"https://api.github.com/repos/slamdata/purescript-halogen/forks","keys_url":"https://api.github.com/repos/slamdata/purescript-halogen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slamdata/purescript-halogen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slamdata/purescript-halogen/teams","hooks_url":"https://api.github.com/repos/slamdata/purescript-halogen/hooks","issue_events_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/events{/number}","events_url":"https://api.github.com/repos/slamdata/purescript-halogen/events","assignees_url":"https://api.github.com/repos/slamdata/purescript-halogen/assignees{/user}","branches_url":"https://api.github.com/repos/slamdata/purescript-halogen/branches{/branch}","tags_url":"https://api.github.com/repos/slamdata/purescript-halogen/tags","blobs_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/refs{/sha}","trees_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slamdata/purescript-halogen/statuses/{sha}","languages_url":"https://api.github.com/repos/slamdata/purescript-halogen/languages","stargazers_url":"https://api.github.com/repos/slamdata/purescript-halogen/stargazers","contributors_url":"https://api.github.com/repos/slamdata/purescript-halogen/contributors","subscribers_url":"https://api.github.com/repos/slamdata/purescript-halogen/subscribers","subscription_url":"https://api.github.com/repos/slamdata/purescript-halogen/subscription","commits_url":"https://api.github.com/repos/slamdata/purescript-halogen/commits{/sha}","git_commits_url":"https://api.github.com/repos/slamdata/purescript-halogen/git/commits{/sha}","comments_url":"https://api.github.com/repos/slamdata/purescript-halogen/comments{/number}","issue_comment_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues/comments{/number}","contents_url":"https://api.github.com/repos/slamdata/purescript-halogen/contents/{+path}","compare_url":"https://api.github.com/repos/slamdata/purescript-halogen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slamdata/purescript-halogen/merges","archive_url":"https://api.github.com/repos/slamdata/purescript-halogen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slamdata/purescript-halogen/downloads","issues_url":"https://api.github.com/repos/slamdata/purescript-halogen/issues{/number}","pulls_url":"https://api.github.com/repos/slamdata/purescript-halogen/pulls{/number}","milestones_url":"https://api.github.com/repos/slamdata/purescript-halogen/milestones{/number}","notifications_url":"https://api.github.com/repos/slamdata/purescript-halogen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slamdata/purescript-halogen/labels{/name}","releases_url":"https://api.github.com/repos/slamdata/purescript-halogen/releases{/id}","created_at":"2015-02-25T21:44:09Z","updated_at":"2015-05-02T21:04:49Z","pushed_at":"2015-05-03T01:04:15Z","git_url":"git://github.com/slamdata/purescript-halogen.git","ssh_url":"git@github.com:slamdata/purescript-halogen.git","clone_url":"https://github.com/slamdata/purescript-halogen.git","svn_url":"https://github.com/slamdata/purescript-halogen","homepage":null,"size":1542,"stargazers_count":100,"watchers_count":100,"language":"PureScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":13,"forks":8,"open_issues":13,"watchers":100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/106"},"html":{"href":"https://github.com/slamdata/purescript-halogen/pull/106"},"issue":{"href":"https://api.github.com/repos/slamdata/purescript-halogen/issues/106"},"comments":{"href":"https://api.github.com/repos/slamdata/purescript-halogen/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slamdata/purescript-halogen/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/slamdata/purescript-halogen/statuses/d8ea8b6ec9c28d32301fadb8b6816b04115050cb"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":136,"deletions":309,"changed_files":11}}