{"action":"created","comment":{"url":"https://api.github.com/repos/Roblox/roact/pulls/comments/188479034","pull_request_review_id":120465413,"id":188479034,"diff_hunk":"@@ -0,0 +1,20 @@\n+--[[\n+\tProvides an API for acquiring a reference to a reified object. This\n+\tAPI is designed to mimic React 16.3's createRef API.\n+\n+\tSee:\n+\t* https://reactjs.org/docs/refs-and-the-dom.html\n+\t* https://reactjs.org/blog/2018/03/29/react-v-16-3.html#createref-api\n+]]\n+\n+local refMetatable = {\n+\t__tostring = function(self)\n+\t\treturn (\"RoactReference(%q)\"):format(tostring(self.current))","path":"lib/createRef.lua","position":null,"original_position":12,"commit_id":"8c6cb36d0b7023b92ae0d753bfd061056bead6ab","original_commit_id":"6f770ab81b2777b401ad303e72c54c5c6d009f5d","user":{"login":"AmaranthineCodices","id":31936135,"avatar_url":"https://avatars2.githubusercontent.com/u/31936135?v=4","gravatar_id":"","url":"https://api.github.com/users/AmaranthineCodices","html_url":"https://github.com/AmaranthineCodices","followers_url":"https://api.github.com/users/AmaranthineCodices/followers","following_url":"https://api.github.com/users/AmaranthineCodices/following{/other_user}","gists_url":"https://api.github.com/users/AmaranthineCodices/gists{/gist_id}","starred_url":"https://api.github.com/users/AmaranthineCodices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmaranthineCodices/subscriptions","organizations_url":"https://api.github.com/users/AmaranthineCodices/orgs","repos_url":"https://api.github.com/users/AmaranthineCodices/repos","events_url":"https://api.github.com/users/AmaranthineCodices/events{/privacy}","received_events_url":"https://api.github.com/users/AmaranthineCodices/received_events","type":"User","site_admin":false},"body":"That's true - I'm used to quoting everything, but in this case it doesn't do much good! Fixed now.","created_at":"2018-05-16T01:07:38Z","updated_at":"2018-05-16T01:07:39Z","html_url":"https://github.com/Roblox/roact/pull/92#discussion_r188479034","pull_request_url":"https://api.github.com/repos/Roblox/roact/pulls/92","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Roblox/roact/pulls/comments/188479034"},"html":{"href":"https://github.com/Roblox/roact/pull/92#discussion_r188479034"},"pull_request":{"href":"https://api.github.com/repos/Roblox/roact/pulls/92"}},"in_reply_to_id":188478742},"pull_request":{"url":"https://api.github.com/repos/Roblox/roact/pulls/92","id":188108970,"html_url":"https://github.com/Roblox/roact/pull/92","diff_url":"https://github.com/Roblox/roact/pull/92.diff","patch_url":"https://github.com/Roblox/roact/pull/92.patch","issue_url":"https://api.github.com/repos/Roblox/roact/issues/92","number":92,"state":"open","locked":false,"title":"createRef API","user":{"login":"AmaranthineCodices","id":31936135,"avatar_url":"https://avatars2.githubusercontent.com/u/31936135?v=4","gravatar_id":"","url":"https://api.github.com/users/AmaranthineCodices","html_url":"https://github.com/AmaranthineCodices","followers_url":"https://api.github.com/users/AmaranthineCodices/followers","following_url":"https://api.github.com/users/AmaranthineCodices/following{/other_user}","gists_url":"https://api.github.com/users/AmaranthineCodices/gists{/gist_id}","starred_url":"https://api.github.com/users/AmaranthineCodices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmaranthineCodices/subscriptions","organizations_url":"https://api.github.com/users/AmaranthineCodices/orgs","repos_url":"https://api.github.com/users/AmaranthineCodices/repos","events_url":"https://api.github.com/users/AmaranthineCodices/events{/privacy}","received_events_url":"https://api.github.com/users/AmaranthineCodices/received_events","type":"User","site_admin":false},"body":"Closes #70.\r\n\r\nAdds a `createRef` function to the global Roact namespace. `createRef` returns an object reference with a `current` property that can be used like existing functional refs. Example usage:\r\n\r\n```lua\r\nlocal SomeTextbox = Roact.Component:extend(\"SomeTextbox\")\r\n\r\nfunction SomeTextbox:init()\r\n    self.textboxRef = Roact.createRef()\r\nend\r\n\r\nfunction SomeTextbox:render()\r\n    return Roact.createElement(\"TextBox\", {\r\n        -- ...\r\n        [Roact.Ref] = self.textboxRef\r\n    })\r\nend\r\n\r\nfunction SomeTextbox:didMount()\r\n    self.textboxRef.current:CaptureFocus()\r\nend\r\n```","created_at":"2018-05-15T12:19:32Z","updated_at":"2018-05-16T01:07:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c384920b070544a06c050ee835209ea92a7382b4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Roblox/roact/pulls/92/commits","review_comments_url":"https://api.github.com/repos/Roblox/roact/pulls/92/comments","review_comment_url":"https://api.github.com/repos/Roblox/roact/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Roblox/roact/issues/92/comments","statuses_url":"https://api.github.com/repos/Roblox/roact/statuses/8c6cb36d0b7023b92ae0d753bfd061056bead6ab","head":{"label":"AmaranthineCodices:createRef","ref":"createRef","sha":"8c6cb36d0b7023b92ae0d753bfd061056bead6ab","user":{"login":"AmaranthineCodices","id":31936135,"avatar_url":"https://avatars2.githubusercontent.com/u/31936135?v=4","gravatar_id":"","url":"https://api.github.com/users/AmaranthineCodices","html_url":"https://github.com/AmaranthineCodices","followers_url":"https://api.github.com/users/AmaranthineCodices/followers","following_url":"https://api.github.com/users/AmaranthineCodices/following{/other_user}","gists_url":"https://api.github.com/users/AmaranthineCodices/gists{/gist_id}","starred_url":"https://api.github.com/users/AmaranthineCodices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmaranthineCodices/subscriptions","organizations_url":"https://api.github.com/users/AmaranthineCodices/orgs","repos_url":"https://api.github.com/users/AmaranthineCodices/repos","events_url":"https://api.github.com/users/AmaranthineCodices/events{/privacy}","received_events_url":"https://api.github.com/users/AmaranthineCodices/received_events","type":"User","site_admin":false},"repo":{"id":117580831,"name":"roact","full_name":"AmaranthineCodices/roact","owner":{"login":"AmaranthineCodices","id":31936135,"avatar_url":"https://avatars2.githubusercontent.com/u/31936135?v=4","gravatar_id":"","url":"https://api.github.com/users/AmaranthineCodices","html_url":"https://github.com/AmaranthineCodices","followers_url":"https://api.github.com/users/AmaranthineCodices/followers","following_url":"https://api.github.com/users/AmaranthineCodices/following{/other_user}","gists_url":"https://api.github.com/users/AmaranthineCodices/gists{/gist_id}","starred_url":"https://api.github.com/users/AmaranthineCodices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmaranthineCodices/subscriptions","organizations_url":"https://api.github.com/users/AmaranthineCodices/orgs","repos_url":"https://api.github.com/users/AmaranthineCodices/repos","events_url":"https://api.github.com/users/AmaranthineCodices/events{/privacy}","received_events_url":"https://api.github.com/users/AmaranthineCodices/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AmaranthineCodices/roact","description":"A view management library for Roblox Lua like React","fork":true,"url":"https://api.github.com/repos/AmaranthineCodices/roact","forks_url":"https://api.github.com/repos/AmaranthineCodices/roact/forks","keys_url":"https://api.github.com/repos/AmaranthineCodices/roact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmaranthineCodices/roact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmaranthineCodices/roact/teams","hooks_url":"https://api.github.com/repos/AmaranthineCodices/roact/hooks","issue_events_url":"https://api.github.com/repos/AmaranthineCodices/roact/issues/events{/number}","events_url":"https://api.github.com/repos/AmaranthineCodices/roact/events","assignees_url":"https://api.github.com/repos/AmaranthineCodices/roact/assignees{/user}","branches_url":"https://api.github.com/repos/AmaranthineCodices/roact/branches{/branch}","tags_url":"https://api.github.com/repos/AmaranthineCodices/roact/tags","blobs_url":"https://api.github.com/repos/AmaranthineCodices/roact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmaranthineCodices/roact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmaranthineCodices/roact/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmaranthineCodices/roact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmaranthineCodices/roact/statuses/{sha}","languages_url":"https://api.github.com/repos/AmaranthineCodices/roact/languages","stargazers_url":"https://api.github.com/repos/AmaranthineCodices/roact/stargazers","contributors_url":"https://api.github.com/repos/AmaranthineCodices/roact/contributors","subscribers_url":"https://api.github.com/repos/AmaranthineCodices/roact/subscribers","subscription_url":"https://api.github.com/repos/AmaranthineCodices/roact/subscription","commits_url":"https://api.github.com/repos/AmaranthineCodices/roact/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmaranthineCodices/roact/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmaranthineCodices/roact/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmaranthineCodices/roact/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmaranthineCodices/roact/contents/{+path}","compare_url":"https://api.github.com/repos/AmaranthineCodices/roact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmaranthineCodices/roact/merges","archive_url":"https://api.github.com/repos/AmaranthineCodices/roact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmaranthineCodices/roact/downloads","issues_url":"https://api.github.com/repos/AmaranthineCodices/roact/issues{/number}","pulls_url":"https://api.github.com/repos/AmaranthineCodices/roact/pulls{/number}","milestones_url":"https://api.github.com/repos/AmaranthineCodices/roact/milestones{/number}","notifications_url":"https://api.github.com/repos/AmaranthineCodices/roact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmaranthineCodices/roact/labels{/name}","releases_url":"https://api.github.com/repos/AmaranthineCodices/roact/releases{/id}","deployments_url":"https://api.github.com/repos/AmaranthineCodices/roact/deployments","created_at":"2018-01-15T18:29:58Z","updated_at":"2018-05-15T01:36:48Z","pushed_at":"2018-05-16T01:07:36Z","git_url":"git://github.com/AmaranthineCodices/roact.git","ssh_url":"git@github.com:AmaranthineCodices/roact.git","clone_url":"https://github.com/AmaranthineCodices/roact.git","svn_url":"https://github.com/AmaranthineCodices/roact","homepage":"","size":209,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Roblox:master","ref":"master","sha":"93358cabd77f780e1305553b571d40d56e7c93e3","user":{"login":"Roblox","id":4195619,"avatar_url":"https://avatars2.githubusercontent.com/u/4195619?v=4","gravatar_id":"","url":"https://api.github.com/users/Roblox","html_url":"https://github.com/Roblox","followers_url":"https://api.github.com/users/Roblox/followers","following_url":"https://api.github.com/users/Roblox/following{/other_user}","gists_url":"https://api.github.com/users/Roblox/gists{/gist_id}","starred_url":"https://api.github.com/users/Roblox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roblox/subscriptions","organizations_url":"https://api.github.com/users/Roblox/orgs","repos_url":"https://api.github.com/users/Roblox/repos","events_url":"https://api.github.com/users/Roblox/events{/privacy}","received_events_url":"https://api.github.com/users/Roblox/received_events","type":"Organization","site_admin":false},"repo":{"id":109429829,"name":"roact","full_name":"Roblox/roact","owner":{"login":"Roblox","id":4195619,"avatar_url":"https://avatars2.githubusercontent.com/u/4195619?v=4","gravatar_id":"","url":"https://api.github.com/users/Roblox","html_url":"https://github.com/Roblox","followers_url":"https://api.github.com/users/Roblox/followers","following_url":"https://api.github.com/users/Roblox/following{/other_user}","gists_url":"https://api.github.com/users/Roblox/gists{/gist_id}","starred_url":"https://api.github.com/users/Roblox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roblox/subscriptions","organizations_url":"https://api.github.com/users/Roblox/orgs","repos_url":"https://api.github.com/users/Roblox/repos","events_url":"https://api.github.com/users/Roblox/events{/privacy}","received_events_url":"https://api.github.com/users/Roblox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Roblox/roact","description":"A view management library for Roblox Lua similar to React","fork":false,"url":"https://api.github.com/repos/Roblox/roact","forks_url":"https://api.github.com/repos/Roblox/roact/forks","keys_url":"https://api.github.com/repos/Roblox/roact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Roblox/roact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Roblox/roact/teams","hooks_url":"https://api.github.com/repos/Roblox/roact/hooks","issue_events_url":"https://api.github.com/repos/Roblox/roact/issues/events{/number}","events_url":"https://api.github.com/repos/Roblox/roact/events","assignees_url":"https://api.github.com/repos/Roblox/roact/assignees{/user}","branches_url":"https://api.github.com/repos/Roblox/roact/branches{/branch}","tags_url":"https://api.github.com/repos/Roblox/roact/tags","blobs_url":"https://api.github.com/repos/Roblox/roact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Roblox/roact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Roblox/roact/git/refs{/sha}","trees_url":"https://api.github.com/repos/Roblox/roact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Roblox/roact/statuses/{sha}","languages_url":"https://api.github.com/repos/Roblox/roact/languages","stargazers_url":"https://api.github.com/repos/Roblox/roact/stargazers","contributors_url":"https://api.github.com/repos/Roblox/roact/contributors","subscribers_url":"https://api.github.com/repos/Roblox/roact/subscribers","subscription_url":"https://api.github.com/repos/Roblox/roact/subscription","commits_url":"https://api.github.com/repos/Roblox/roact/commits{/sha}","git_commits_url":"https://api.github.com/repos/Roblox/roact/git/commits{/sha}","comments_url":"https://api.github.com/repos/Roblox/roact/comments{/number}","issue_comment_url":"https://api.github.com/repos/Roblox/roact/issues/comments{/number}","contents_url":"https://api.github.com/repos/Roblox/roact/contents/{+path}","compare_url":"https://api.github.com/repos/Roblox/roact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Roblox/roact/merges","archive_url":"https://api.github.com/repos/Roblox/roact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Roblox/roact/downloads","issues_url":"https://api.github.com/repos/Roblox/roact/issues{/number}","pulls_url":"https://api.github.com/repos/Roblox/roact/pulls{/number}","milestones_url":"https://api.github.com/repos/Roblox/roact/milestones{/number}","notifications_url":"https://api.github.com/repos/Roblox/roact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Roblox/roact/labels{/name}","releases_url":"https://api.github.com/repos/Roblox/roact/releases{/id}","deployments_url":"https://api.github.com/repos/Roblox/roact/deployments","created_at":"2017-11-03T18:29:50Z","updated_at":"2018-05-15T20:40:36Z","pushed_at":"2018-05-16T01:07:38Z","git_url":"git://github.com/Roblox/roact.git","ssh_url":"git@github.com:Roblox/roact.git","clone_url":"https://github.com/Roblox/roact.git","svn_url":"https://github.com/Roblox/roact","homepage":"","size":419,"stargazers_count":31,"watchers_count":31,"language":"Lua","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":8,"open_issues":35,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Roblox/roact/pulls/92"},"html":{"href":"https://github.com/Roblox/roact/pull/92"},"issue":{"href":"https://api.github.com/repos/Roblox/roact/issues/92"},"comments":{"href":"https://api.github.com/repos/Roblox/roact/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/Roblox/roact/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/Roblox/roact/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Roblox/roact/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/Roblox/roact/statuses/8c6cb36d0b7023b92ae0d753bfd061056bead6ab"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"AmaranthineCodices"}}