payload: {"action":"created","comment":{"url":"https://api.github.com/repos/algolia/react-instantsearch/pulls/comments/255157301","pull_request_review_id":201685974,"id":255157301,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NTE1NzMwMQ==","diff_hunk":"@@ -0,0 +1,50 @@\n+import React from 'react';\n+import PropTypes from 'prop-types';\n+\n+type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;\n+type Subtract<T, K> = Omit<T, keyof K>;\n+\n+// @TODO: Move to GoogleMaps once it's migrated to TypeScript\n+export interface GoogleMapsContext {\n+  __ais_geo_search__google_maps__: {\n+    google: typeof google;\n+    instance: google.maps.Map;\n+  };\n+}\n+\n+export interface WithGoogleMapsProps {\n+  google: typeof google;\n+  googleMapsInstance: google.maps.Map;\n+}\n+\n+const withGoogleMaps = <Props extends WithGoogleMapsProps>(","path":"packages/react-instantsearch-dom-maps/src/withGoogleMaps.tsx","position":20,"original_position":20,"commit_id":"24ae63eafd571428fcd7da0f74629e015ee4c7bb","original_commit_id":"24ae63eafd571428fcd7da0f74629e015ee4c7bb","user":{"login":"Haroenv","id":6270048,"node_id":"MDQ6VXNlcjYyNzAwNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/6270048?v=4","gravatar_id":"","url":"https://api.github.com/users/Haroenv","html_url":"https://github.com/Haroenv","followers_url":"https://api.github.com/users/Haroenv/followers","following_url":"https://api.github.com/users/Haroenv/following{/other_user}","gists_url":"https://api.github.com/users/Haroenv/gists{/gist_id}","starred_url":"https://api.github.com/users/Haroenv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Haroenv/subscriptions","organizations_url":"https://api.github.com/users/Haroenv/orgs","repos_url":"https://api.github.com/users/Haroenv/repos","events_url":"https://api.github.com/users/Haroenv/events{/privacy}","received_events_url":"https://api.github.com/users/Haroenv/received_events","type":"User","site_admin":false},"body":"naming is somewhat inconsistent, but it makes sense","created_at":"2019-02-08T17:03:54Z","updated_at":"2019-02-08T17:04:10Z","html_url":"https://github.com/algolia/react-instantsearch/pull/2000#discussion_r255157301","pull_request_url":"https://api.github.com/repos/algolia/react-instantsearch/pulls/2000","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/algolia/react-instantsearch/pulls/comments/255157301"},"html":{"href":"https://github.com/algolia/react-instantsearch/pull/2000#discussion_r255157301"},"pull_request":{"href":"https://api.github.com/repos/algolia/react-instantsearch/pulls/2000"}}},"pull_request":{"url":"https://api.github.com/repos/algolia/react-instantsearch/pulls/2000","id":251512126,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUxNTEyMTI2","html_url":"https://github.com/algolia/react-instantsearch/pull/2000","diff_url":"https://github.com/algolia/react-instantsearch/pull/2000.diff","patch_url":"https://github.com/algolia/react-instantsearch/pull/2000.patch","issue_url":"https://api.github.com/repos/algolia/react-instantsearch/issues/2000","number":2000,"state":"open","locked":false,"title":"feat(DOMMaps): expose withGoogleMaps HOC [PART-1]","user":{"login":"samouss","id":6513513,"node_id":"MDQ6VXNlcjY1MTM1MTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6513513?v=4","gravatar_id":"","url":"https://api.github.com/users/samouss","html_url":"https://github.com/samouss","followers_url":"https://api.github.com/users/samouss/followers","following_url":"https://api.github.com/users/samouss/following{/other_user}","gists_url":"https://api.github.com/users/samouss/gists{/gist_id}","starred_url":"https://api.github.com/users/samouss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samouss/subscriptions","organizations_url":"https://api.github.com/users/samouss/orgs","repos_url":"https://api.github.com/users/samouss/repos","events_url":"https://api.github.com/users/samouss/events{/privacy}","received_events_url":"https://api.github.com/users/samouss/received_events","type":"User","site_admin":false},"body":"**Summary**\r\n\r\nThis PR introduces a new HOC for the maps package. It's now part of the public API because we export this component. The HOC gives access to the `google` object and the `googleMapsInstance` which is the instance of the map. \r\n\r\nUsers might want to leverage this to create their own layer on top of our geo search widget. It was already the case with the [heatmap](https://github.com/algolia/react-instantsearch/pull/1721) PR. Now it's possible to build it in user-land.\r\n\r\nWe choose the HOC over a render prop because it's easier to build a component with lifecycle hooks out of an HOC. With a render prop you have to create a layer to extract the value and provide it to the component that will use it. We can built an HOC out of render prop so if someone ask for it we can refactor the API to provide both.\r\n\r\n**Usage**\r\n\r\n```jsx\r\nconst Heatmap = withGoogleMaps({ google, googleMapsInstance }) => null;\r\n\r\nconst App = () => (\r\n  <GeoSearch google={google}>\r\n    {() => (\r\n      <Fragment>\r\n        <Heatmap />\r\n      </Fragment>\r\n    )}\r\n  </GeoSearch>\r\n);\r\n```","created_at":"2019-02-08T15:56:12Z","updated_at":"2019-02-08T17:04:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"910743dddab99472e82286246905787bcc3f4a29","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/algolia/react-instantsearch/pulls/2000/commits","review_comments_url":"https://api.github.com/repos/algolia/react-instantsearch/pulls/2000/comments","review_comment_url":"https://api.github.com/repos/algolia/react-instantsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algolia/react-instantsearch/issues/2000/comments","statuses_url":"https://api.github.com/repos/algolia/react-instantsearch/statuses/24ae63eafd571428fcd7da0f74629e015ee4c7bb","head":{"label":"algolia:feat/gmaps-1-hoc","ref":"feat/gmaps-1-hoc","sha":"24ae63eafd571428fcd7da0f74629e015ee4c7bb","user":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":87180009,"node_id":"MDEwOlJlcG9zaXRvcnk4NzE4MDAwOQ==","name":"react-instantsearch","full_name":"algolia/react-instantsearch","private":false,"owner":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/algolia/react-instantsearch","description":"⚡ Lightning-fast search for React and React Native applications, by Algolia.","fork":false,"url":"https://api.github.com/repos/algolia/react-instantsearch","forks_url":"https://api.github.com/repos/algolia/react-instantsearch/forks","keys_url":"https://api.github.com/repos/algolia/react-instantsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/react-instantsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/react-instantsearch/teams","hooks_url":"https://api.github.com/repos/algolia/react-instantsearch/hooks","issue_events_url":"https://api.github.com/repos/algolia/react-instantsearch/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/react-instantsearch/events","assignees_url":"https://api.github.com/repos/algolia/react-instantsearch/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/react-instantsearch/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/react-instantsearch/tags","blobs_url":"https://api.github.com/repos/algolia/react-instantsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/react-instantsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/react-instantsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/react-instantsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/react-instantsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/react-instantsearch/languages","stargazers_url":"https://api.github.com/repos/algolia/react-instantsearch/stargazers","contributors_url":"https://api.github.com/repos/algolia/react-instantsearch/contributors","subscribers_url":"https://api.github.com/repos/algolia/react-instantsearch/subscribers","subscription_url":"https://api.github.com/repos/algolia/react-instantsearch/subscription","commits_url":"https://api.github.com/repos/algolia/react-instantsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/react-instantsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/react-instantsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/react-instantsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/react-instantsearch/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/react-instantsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/react-instantsearch/merges","archive_url":"https://api.github.com/repos/algolia/react-instantsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/react-instantsearch/downloads","issues_url":"https://api.github.com/repos/algolia/react-instantsearch/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/react-instantsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/react-instantsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/react-instantsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/react-instantsearch/labels{/name}","releases_url":"https://api.github.com/repos/algolia/react-instantsearch/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/react-instantsearch/deployments","created_at":"2017-04-04T11:45:29Z","updated_at":"2019-02-08T15:37:58Z","pushed_at":"2019-02-08T17:01:22Z","git_url":"git://github.com/algolia/react-instantsearch.git","ssh_url":"git@github.com:algolia/react-instantsearch.git","clone_url":"https://github.com/algolia/react-instantsearch.git","svn_url":"https://github.com/algolia/react-instantsearch","homepage":"https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/react/","size":106222,"stargazers_count":727,"watchers_count":727,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":154,"mirror_url":null,"archived":false,"open_issues_count":65,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":154,"open_issues":65,"watchers":727,"default_branch":"master"}},"base":{"label":"algolia:master","ref":"master","sha":"31789dfa5335902102ca8f9fa5fe7eb6eb13677c","user":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":87180009,"node_id":"MDEwOlJlcG9zaXRvcnk4NzE4MDAwOQ==","name":"react-instantsearch","full_name":"algolia/react-instantsearch","private":false,"owner":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/algolia/react-instantsearch","description":"⚡ Lightning-fast search for React and React Native applications, by Algolia.","fork":false,"url":"https://api.github.com/repos/algolia/react-instantsearch","forks_url":"https://api.github.com/repos/algolia/react-instantsearch/forks","keys_url":"https://api.github.com/repos/algolia/react-instantsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/react-instantsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/react-instantsearch/teams","hooks_url":"https://api.github.com/repos/algolia/react-instantsearch/hooks","issue_events_url":"https://api.github.com/repos/algolia/react-instantsearch/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/react-instantsearch/events","assignees_url":"https://api.github.com/repos/algolia/react-instantsearch/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/react-instantsearch/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/react-instantsearch/tags","blobs_url":"https://api.github.com/repos/algolia/react-instantsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/react-instantsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/react-instantsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/react-instantsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/react-instantsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/react-instantsearch/languages","stargazers_url":"https://api.github.com/repos/algolia/react-instantsearch/stargazers","contributors_url":"https://api.github.com/repos/algolia/react-instantsearch/contributors","subscribers_url":"https://api.github.com/repos/algolia/react-instantsearch/subscribers","subscription_url":"https://api.github.com/repos/algolia/react-instantsearch/subscription","commits_url":"https://api.github.com/repos/algolia/react-instantsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/react-instantsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/react-instantsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/react-instantsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/react-instantsearch/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/react-instantsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/react-instantsearch/merges","archive_url":"https://api.github.com/repos/algolia/react-instantsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/react-instantsearch/downloads","issues_url":"https://api.github.com/repos/algolia/react-instantsearch/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/react-instantsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/react-instantsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/react-instantsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/react-instantsearch/labels{/name}","releases_url":"https://api.github.com/repos/algolia/react-instantsearch/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/react-instantsearch/deployments","created_at":"2017-04-04T11:45:29Z","updated_at":"2019-02-08T15:37:58Z","pushed_at":"2019-02-08T17:01:22Z","git_url":"git://github.com/algolia/react-instantsearch.git","ssh_url":"git@github.com:algolia/react-instantsearch.git","clone_url":"https://github.com/algolia/react-instantsearch.git","svn_url":"https://github.com/algolia/react-instantsearch","homepage":"https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/react/","size":106222,"stargazers_count":727,"watchers_count":727,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":154,"mirror_url":null,"archived":false,"open_issues_count":65,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":154,"open_issues":65,"watchers":727,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/algolia/react-instantsearch/pulls/2000"},"html":{"href":"https://github.com/algolia/react-instantsearch/pull/2000"},"issue":{"href":"https://api.github.com/repos/algolia/react-instantsearch/issues/2000"},"comments":{"href":"https://api.github.com/repos/algolia/react-instantsearch/issues/2000/comments"},"review_comments":{"href":"https://api.github.com/repos/algolia/react-instantsearch/pulls/2000/comments"},"review_comment":{"href":"https://api.github.com/repos/algolia/react-instantsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algolia/react-instantsearch/pulls/2000/commits"},"statuses":{"href":"https://api.github.com/repos/algolia/react-instantsearch/statuses/24ae63eafd571428fcd7da0f74629e015ee4c7bb"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"Haroenv"}}