{"action":"created","comment":{"url":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/comments/234443300","pull_request_review_id":176088208,"id":234443300,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDQ0MzMwMA==","diff_hunk":"@@ -81,7 +72,7 @@ function useForceUpdate() {\n     return update\n }\n \n-function useObserverReaction(baseComponentName: string) {\n+export function useObserver<T>(fn: () => T, baseComponentName = \"anonymous\"): T {","path":"src/observer.ts","position":23,"original_position":23,"commit_id":"2d68d26e260a9ad28f4cb456927bc4b7e43ce9c0","original_commit_id":"2d68d26e260a9ad28f4cb456927bc4b7e43ce9c0","user":{"login":"FredyC","id":1096340,"node_id":"MDQ6VXNlcjEwOTYzNDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1096340?v=4","gravatar_id":"","url":"https://api.github.com/users/FredyC","html_url":"https://github.com/FredyC","followers_url":"https://api.github.com/users/FredyC/followers","following_url":"https://api.github.com/users/FredyC/following{/other_user}","gists_url":"https://api.github.com/users/FredyC/gists{/gist_id}","starred_url":"https://api.github.com/users/FredyC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredyC/subscriptions","organizations_url":"https://api.github.com/users/FredyC/orgs","repos_url":"https://api.github.com/users/FredyC/repos","events_url":"https://api.github.com/users/FredyC/events{/privacy}","received_events_url":"https://api.github.com/users/FredyC/received_events","type":"User","site_admin":false},"body":"Extract it to a separate file, please. And some basic tests would be nice as well :)","created_at":"2018-11-18T12:52:04Z","updated_at":"2018-11-18T12:54:15Z","html_url":"https://github.com/mobxjs/mobx-react-lite/pull/24#discussion_r234443300","pull_request_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/24","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/comments/234443300"},"html":{"href":"https://github.com/mobxjs/mobx-react-lite/pull/24#discussion_r234443300"},"pull_request":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/24","id":231783302,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNzgzMzAy","html_url":"https://github.com/mobxjs/mobx-react-lite/pull/24","diff_url":"https://github.com/mobxjs/mobx-react-lite/pull/24.diff","patch_url":"https://github.com/mobxjs/mobx-react-lite/pull/24.patch","issue_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues/24","number":24,"state":"open","locked":false,"title":"useObserver","user":{"login":"xaviergonz","id":6306796,"node_id":"MDQ6VXNlcjYzMDY3OTY=","avatar_url":"https://avatars2.githubusercontent.com/u/6306796?v=4","gravatar_id":"","url":"https://api.github.com/users/xaviergonz","html_url":"https://github.com/xaviergonz","followers_url":"https://api.github.com/users/xaviergonz/followers","following_url":"https://api.github.com/users/xaviergonz/following{/other_user}","gists_url":"https://api.github.com/users/xaviergonz/gists{/gist_id}","starred_url":"https://api.github.com/users/xaviergonz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaviergonz/subscriptions","organizations_url":"https://api.github.com/users/xaviergonz/orgs","repos_url":"https://api.github.com/users/xaviergonz/repos","events_url":"https://api.github.com/users/xaviergonz/events{/privacy}","received_events_url":"https://api.github.com/users/xaviergonz/received_events","type":"User","site_admin":false},"body":"Closes #23 ","created_at":"2018-11-18T11:45:13Z","updated_at":"2018-11-18T12:54:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abe6fdc880110dcd235de669840469766ee9d7a8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/24/commits","review_comments_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/24/comments","review_comment_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues/24/comments","statuses_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/statuses/2d68d26e260a9ad28f4cb456927bc4b7e43ce9c0","head":{"label":"mobxjs:useObserver","ref":"useObserver","sha":"2d68d26e260a9ad28f4cb456927bc4b7e43ce9c0","user":{"login":"mobxjs","id":17475736,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDc1NzM2","avatar_url":"https://avatars3.githubusercontent.com/u/17475736?v=4","gravatar_id":"","url":"https://api.github.com/users/mobxjs","html_url":"https://github.com/mobxjs","followers_url":"https://api.github.com/users/mobxjs/followers","following_url":"https://api.github.com/users/mobxjs/following{/other_user}","gists_url":"https://api.github.com/users/mobxjs/gists{/gist_id}","starred_url":"https://api.github.com/users/mobxjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobxjs/subscriptions","organizations_url":"https://api.github.com/users/mobxjs/orgs","repos_url":"https://api.github.com/users/mobxjs/repos","events_url":"https://api.github.com/users/mobxjs/events{/privacy}","received_events_url":"https://api.github.com/users/mobxjs/received_events","type":"Organization","site_admin":false},"repo":{"id":156963479,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY5NjM0Nzk=","name":"mobx-react-lite","full_name":"mobxjs/mobx-react-lite","private":false,"owner":{"login":"mobxjs","id":17475736,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDc1NzM2","avatar_url":"https://avatars3.githubusercontent.com/u/17475736?v=4","gravatar_id":"","url":"https://api.github.com/users/mobxjs","html_url":"https://github.com/mobxjs","followers_url":"https://api.github.com/users/mobxjs/followers","following_url":"https://api.github.com/users/mobxjs/following{/other_user}","gists_url":"https://api.github.com/users/mobxjs/gists{/gist_id}","starred_url":"https://api.github.com/users/mobxjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobxjs/subscriptions","organizations_url":"https://api.github.com/users/mobxjs/orgs","repos_url":"https://api.github.com/users/mobxjs/repos","events_url":"https://api.github.com/users/mobxjs/events{/privacy}","received_events_url":"https://api.github.com/users/mobxjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mobxjs/mobx-react-lite","description":"Lightweight React bindings for MobX based on experimental React hooks","fork":false,"url":"https://api.github.com/repos/mobxjs/mobx-react-lite","forks_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/forks","keys_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/teams","hooks_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/hooks","issue_events_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues/events{/number}","events_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/events","assignees_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/assignees{/user}","branches_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/branches{/branch}","tags_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/tags","blobs_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/statuses/{sha}","languages_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/languages","stargazers_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/stargazers","contributors_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/contributors","subscribers_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/subscribers","subscription_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/subscription","commits_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/contents/{+path}","compare_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/merges","archive_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/downloads","issues_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues{/number}","pulls_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls{/number}","milestones_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/milestones{/number}","notifications_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/labels{/name}","releases_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/releases{/id}","deployments_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/deployments","created_at":"2018-11-10T08:46:56Z","updated_at":"2018-11-18T11:09:28Z","pushed_at":"2018-11-18T11:45:13Z","git_url":"git://github.com/mobxjs/mobx-react-lite.git","ssh_url":"git@github.com:mobxjs/mobx-react-lite.git","clone_url":"https://github.com/mobxjs/mobx-react-lite.git","svn_url":"https://github.com/mobxjs/mobx-react-lite","homepage":"","size":324,"stargazers_count":170,"watchers_count":170,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":6,"watchers":170,"default_branch":"master"}},"base":{"label":"mobxjs:master","ref":"master","sha":"b6dd04c085b6dce089c7cffcf397740b50075b19","user":{"login":"mobxjs","id":17475736,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDc1NzM2","avatar_url":"https://avatars3.githubusercontent.com/u/17475736?v=4","gravatar_id":"","url":"https://api.github.com/users/mobxjs","html_url":"https://github.com/mobxjs","followers_url":"https://api.github.com/users/mobxjs/followers","following_url":"https://api.github.com/users/mobxjs/following{/other_user}","gists_url":"https://api.github.com/users/mobxjs/gists{/gist_id}","starred_url":"https://api.github.com/users/mobxjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobxjs/subscriptions","organizations_url":"https://api.github.com/users/mobxjs/orgs","repos_url":"https://api.github.com/users/mobxjs/repos","events_url":"https://api.github.com/users/mobxjs/events{/privacy}","received_events_url":"https://api.github.com/users/mobxjs/received_events","type":"Organization","site_admin":false},"repo":{"id":156963479,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY5NjM0Nzk=","name":"mobx-react-lite","full_name":"mobxjs/mobx-react-lite","private":false,"owner":{"login":"mobxjs","id":17475736,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDc1NzM2","avatar_url":"https://avatars3.githubusercontent.com/u/17475736?v=4","gravatar_id":"","url":"https://api.github.com/users/mobxjs","html_url":"https://github.com/mobxjs","followers_url":"https://api.github.com/users/mobxjs/followers","following_url":"https://api.github.com/users/mobxjs/following{/other_user}","gists_url":"https://api.github.com/users/mobxjs/gists{/gist_id}","starred_url":"https://api.github.com/users/mobxjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobxjs/subscriptions","organizations_url":"https://api.github.com/users/mobxjs/orgs","repos_url":"https://api.github.com/users/mobxjs/repos","events_url":"https://api.github.com/users/mobxjs/events{/privacy}","received_events_url":"https://api.github.com/users/mobxjs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mobxjs/mobx-react-lite","description":"Lightweight React bindings for MobX based on experimental React hooks","fork":false,"url":"https://api.github.com/repos/mobxjs/mobx-react-lite","forks_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/forks","keys_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/teams","hooks_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/hooks","issue_events_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues/events{/number}","events_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/events","assignees_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/assignees{/user}","branches_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/branches{/branch}","tags_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/tags","blobs_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/statuses/{sha}","languages_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/languages","stargazers_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/stargazers","contributors_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/contributors","subscribers_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/subscribers","subscription_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/subscription","commits_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/contents/{+path}","compare_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/merges","archive_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/downloads","issues_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues{/number}","pulls_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls{/number}","milestones_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/milestones{/number}","notifications_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/labels{/name}","releases_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/releases{/id}","deployments_url":"https://api.github.com/repos/mobxjs/mobx-react-lite/deployments","created_at":"2018-11-10T08:46:56Z","updated_at":"2018-11-18T11:09:28Z","pushed_at":"2018-11-18T11:45:13Z","git_url":"git://github.com/mobxjs/mobx-react-lite.git","ssh_url":"git@github.com:mobxjs/mobx-react-lite.git","clone_url":"https://github.com/mobxjs/mobx-react-lite.git","svn_url":"https://github.com/mobxjs/mobx-react-lite","homepage":"","size":324,"stargazers_count":170,"watchers_count":170,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":6,"watchers":170,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/24"},"html":{"href":"https://github.com/mobxjs/mobx-react-lite/pull/24"},"issue":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues/24"},"comments":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/mobxjs/mobx-react-lite/statuses/2d68d26e260a9ad28f4cb456927bc4b7e43ce9c0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"FredyC"}}