payload: {"action":"created","issue":{"url":"https://api.github.com/repos/grommet/grommet/issues/3458","repository_url":"https://api.github.com/repos/grommet/grommet","labels_url":"https://api.github.com/repos/grommet/grommet/issues/3458/labels{/name}","comments_url":"https://api.github.com/repos/grommet/grommet/issues/3458/comments","events_url":"https://api.github.com/repos/grommet/grommet/issues/3458/events","html_url":"https://github.com/grommet/grommet/pull/3458","id":506209556,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI3NDgwMjUw","number":3458,"title":"Refactor Diagram.js to use hooks","user":{"login":"husseyexplores","id":38628704,"node_id":"MDQ6VXNlcjM4NjI4NzA0","avatar_url":"https://avatars3.githubusercontent.com/u/38628704?v=4","gravatar_id":"","url":"https://api.github.com/users/husseyexplores","html_url":"https://github.com/husseyexplores","followers_url":"https://api.github.com/users/husseyexplores/followers","following_url":"https://api.github.com/users/husseyexplores/following{/other_user}","gists_url":"https://api.github.com/users/husseyexplores/gists{/gist_id}","starred_url":"https://api.github.com/users/husseyexplores/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/husseyexplores/subscriptions","organizations_url":"https://api.github.com/users/husseyexplores/orgs","repos_url":"https://api.github.com/users/husseyexplores/repos","events_url":"https://api.github.com/users/husseyexplores/events{/privacy}","received_events_url":"https://api.github.com/users/husseyexplores/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-10-12T16:41:51Z","updated_at":"2019-10-22T19:44:45Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/grommet/grommet/pulls/3458","html_url":"https://github.com/grommet/grommet/pull/3458","diff_url":"https://github.com/grommet/grommet/pull/3458.diff","patch_url":"https://github.com/grommet/grommet/pull/3458.patch"},"body":"<!--- Provide a general summary of the PR in the Title above -->\r\n\r\n#### What does this PR do?\r\nThis PR refactors Diagram.js to use hooks.\r\n\r\n#### Where should the reviewer start?\r\n`/src/js/components/Diagram/Diagram.js`\r\n\r\n#### What testing has been done on this PR?\r\nStorybook\r\n\r\n#### How should this be manually tested?\r\nStorybook\r\n\r\n#### Any background context you want to provide?\r\n\r\n#### What are the relevant issues?\r\n#3394 \r\n\r\n#### Screenshots (if appropriate)\r\n\r\n#### Do the grommet docs need to be updated?\r\nNo\r\n\r\n#### Should this PR be mentioned in the release notes?\r\nNo\r\n\r\n#### Is this change backwards compatible or is it a breaking change?\r\nBackwards compatible"},"comment":{"url":"https://api.github.com/repos/grommet/grommet/issues/comments/545122555","html_url":"https://github.com/grommet/grommet/pull/3458#issuecomment-545122555","issue_url":"https://api.github.com/repos/grommet/grommet/issues/3458","id":545122555,"node_id":"MDEyOklzc3VlQ29tbWVudDU0NTEyMjU1NQ==","user":{"login":"ShimiSun","id":6320236,"node_id":"MDQ6VXNlcjYzMjAyMzY=","avatar_url":"https://avatars2.githubusercontent.com/u/6320236?v=4","gravatar_id":"","url":"https://api.github.com/users/ShimiSun","html_url":"https://github.com/ShimiSun","followers_url":"https://api.github.com/users/ShimiSun/followers","following_url":"https://api.github.com/users/ShimiSun/following{/other_user}","gists_url":"https://api.github.com/users/ShimiSun/gists{/gist_id}","starred_url":"https://api.github.com/users/ShimiSun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShimiSun/subscriptions","organizations_url":"https://api.github.com/users/ShimiSun/orgs","repos_url":"https://api.github.com/users/ShimiSun/repos","events_url":"https://api.github.com/users/ShimiSun/events{/privacy}","received_events_url":"https://api.github.com/users/ShimiSun/received_events","type":"User","site_admin":false},"created_at":"2019-10-22T19:44:45Z","updated_at":"2019-10-22T19:44:45Z","author_association":"MEMBER","body":">Another thing is that we can extract some of the functionality into custom hooks?\r\nI'm especially talking about extracting add/remove event handler into possibly a useEventListener hook.\r\n\r\nLooks good! we can start with a PR and see how it goes. the one thing to keep in mind is that we want to keep the code readable for the open-source community.\r\n\r\n>And also adding eslint-plugin-react-hooks into the project will definitely be worth it since we are converting the codebase to use hooks.\r\n\r\nGreat idea! go for it!\r\n"}}
other: {"actor":{"display_login":"ShimiSun"}}