{"action":"created","issue":{"url":"https://api.github.com/repos/jgimbel/react-leaflet-div-icon/issues/17","repository_url":"https://api.github.com/repos/jgimbel/react-leaflet-div-icon","labels_url":"https://api.github.com/repos/jgimbel/react-leaflet-div-icon/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jgimbel/react-leaflet-div-icon/issues/17/comments","events_url":"https://api.github.com/repos/jgimbel/react-leaflet-div-icon/issues/17/events","html_url":"https://github.com/jgimbel/react-leaflet-div-icon/pull/17","id":341814370,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxODU5OTYw","number":17,"title":"react-leaflet v2 compatibility","user":{"login":"daenub","id":1702216,"node_id":"MDQ6VXNlcjE3MDIyMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1702216?v=4","gravatar_id":"","url":"https://api.github.com/users/daenub","html_url":"https://github.com/daenub","followers_url":"https://api.github.com/users/daenub/followers","following_url":"https://api.github.com/users/daenub/following{/other_user}","gists_url":"https://api.github.com/users/daenub/gists{/gist_id}","starred_url":"https://api.github.com/users/daenub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daenub/subscriptions","organizations_url":"https://api.github.com/users/daenub/orgs","repos_url":"https://api.github.com/users/daenub/repos","events_url":"https://api.github.com/users/daenub/events{/privacy}","received_events_url":"https://api.github.com/users/daenub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-07-17T08:22:17Z","updated_at":"2018-11-23T06:14:47Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/jgimbel/react-leaflet-div-icon/pulls/17","html_url":"https://github.com/jgimbel/react-leaflet-div-icon/pull/17","diff_url":"https://github.com/jgimbel/react-leaflet-div-icon/pull/17.diff","patch_url":"https://github.com/jgimbel/react-leaflet-div-icon/pull/17.patch"},"body":"Calling `createLeafletElement` from the `componentWillMount` method is not necessary anymore. The constructor of the `MapLayer` component already does that.\r\n\r\nThe `Divicon` component is now also wrapped with the `withLeaflet()` higher-order component to provide the right context.\r\nhttps://react-leaflet.js.org/docs/en/custom-components.html#docsNav\r\n\r\nI still exported both the wrapped and unwrapped component. In my use case, this helps me to provide the redux store to the components inside the `Divicon`.\r\nLet me know if you have a better idea of how to solve this. "},"comment":{"url":"https://api.github.com/repos/jgimbel/react-leaflet-div-icon/issues/comments/441162517","html_url":"https://github.com/jgimbel/react-leaflet-div-icon/pull/17#issuecomment-441162517","issue_url":"https://api.github.com/repos/jgimbel/react-leaflet-div-icon/issues/17","id":441162517,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTE2MjUxNw==","user":{"login":"rjerue","id":4666313,"node_id":"MDQ6VXNlcjQ2NjYzMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/4666313?v=4","gravatar_id":"","url":"https://api.github.com/users/rjerue","html_url":"https://github.com/rjerue","followers_url":"https://api.github.com/users/rjerue/followers","following_url":"https://api.github.com/users/rjerue/following{/other_user}","gists_url":"https://api.github.com/users/rjerue/gists{/gist_id}","starred_url":"https://api.github.com/users/rjerue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjerue/subscriptions","organizations_url":"https://api.github.com/users/rjerue/orgs","repos_url":"https://api.github.com/users/rjerue/repos","events_url":"https://api.github.com/users/rjerue/events{/privacy}","received_events_url":"https://api.github.com/users/rjerue/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T06:14:47Z","updated_at":"2018-11-23T06:14:47Z","author_association":"NONE","body":"@daenub I'll play around with it tomorrow :)"}}
{"actor":{"display_login":"rjerue"}}