{"action":"closed","issue":{"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/61","repository_url":"https://api.github.com/repos/alex3165/react-mapbox-gl","labels_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/61/comments","events_url":"https://api.github.com/repos/alex3165/react-mapbox-gl/issues/61/events","html_url":"https://github.com/alex3165/react-mapbox-gl/issues/61","id":186564604,"number":61,"title":"Popup implementation uses ReactDOM.render for children, loosing Context","user":{"login":"kmamykin","id":68301,"avatar_url":"https://avatars.githubusercontent.com/u/68301?v=3","gravatar_id":"","url":"https://api.github.com/users/kmamykin","html_url":"https://github.com/kmamykin","followers_url":"https://api.github.com/users/kmamykin/followers","following_url":"https://api.github.com/users/kmamykin/following{/other_user}","gists_url":"https://api.github.com/users/kmamykin/gists{/gist_id}","starred_url":"https://api.github.com/users/kmamykin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmamykin/subscriptions","organizations_url":"https://api.github.com/users/kmamykin/orgs","repos_url":"https://api.github.com/users/kmamykin/repos","events_url":"https://api.github.com/users/kmamykin/events{/privacy}","received_events_url":"https://api.github.com/users/kmamykin/received_events","type":"User","site_admin":false},"labels":[{"id":359059586,"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":428396016,"url":"https://api.github.com/repos/alex3165/react-mapbox-gl/labels/priority%20+","name":"priority +","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"kmamykin","id":68301,"avatar_url":"https://avatars.githubusercontent.com/u/68301?v=3","gravatar_id":"","url":"https://api.github.com/users/kmamykin","html_url":"https://github.com/kmamykin","followers_url":"https://api.github.com/users/kmamykin/followers","following_url":"https://api.github.com/users/kmamykin/following{/other_user}","gists_url":"https://api.github.com/users/kmamykin/gists{/gist_id}","starred_url":"https://api.github.com/users/kmamykin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmamykin/subscriptions","organizations_url":"https://api.github.com/users/kmamykin/orgs","repos_url":"https://api.github.com/users/kmamykin/repos","events_url":"https://api.github.com/users/kmamykin/events{/privacy}","received_events_url":"https://api.github.com/users/kmamykin/received_events","type":"User","site_admin":false},"assignees":[{"login":"kmamykin","id":68301,"avatar_url":"https://avatars.githubusercontent.com/u/68301?v=3","gravatar_id":"","url":"https://api.github.com/users/kmamykin","html_url":"https://github.com/kmamykin","followers_url":"https://api.github.com/users/kmamykin/followers","following_url":"https://api.github.com/users/kmamykin/following{/other_user}","gists_url":"https://api.github.com/users/kmamykin/gists{/gist_id}","starred_url":"https://api.github.com/users/kmamykin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmamykin/subscriptions","organizations_url":"https://api.github.com/users/kmamykin/orgs","repos_url":"https://api.github.com/users/kmamykin/repos","events_url":"https://api.github.com/users/kmamykin/events{/privacy}","received_events_url":"https://api.github.com/users/kmamykin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-11-01T15:33:08Z","updated_at":"2016-12-12T22:41:45Z","closed_at":"2016-12-12T22:41:45Z","body":"The popup component I am implementing requires access to React context objects, and therefore must be rendered as children of the component that provides the context. The Popup component uses ReactDOM.render to render children into a div outside of the app hierarchy, and the popup children receive no context.\r\n\r\nIs there a way to may be use [MapboxGL.Popup.setDOMContent](https://www.mapbox.com/mapbox-gl-js/api/#Popup#setDOMContent) together with using React's ref?\r\n\r\nThere are other issues related to the Marker/Popup components, is it something you may address in the near future?"}}
{"actor":{"display_login":"alex3165"}}