{"action":"created","issue":{"url":"https://api.github.com/repos/react-component/align/issues/7","repository_url":"https://api.github.com/repos/react-component/align","labels_url":"https://api.github.com/repos/react-component/align/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/react-component/align/issues/7/comments","events_url":"https://api.github.com/repos/react-component/align/issues/7/events","html_url":"https://github.com/react-component/align/issues/7","id":166038819,"number":7,"title":"findDOMNode was called on an unmounted component.","user":{"login":"tyruk","id":373429,"avatar_url":"https://avatars.githubusercontent.com/u/373429?v=3","gravatar_id":"","url":"https://api.github.com/users/tyruk","html_url":"https://github.com/tyruk","followers_url":"https://api.github.com/users/tyruk/followers","following_url":"https://api.github.com/users/tyruk/following{/other_user}","gists_url":"https://api.github.com/users/tyruk/gists{/gist_id}","starred_url":"https://api.github.com/users/tyruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyruk/subscriptions","organizations_url":"https://api.github.com/users/tyruk/orgs","repos_url":"https://api.github.com/users/tyruk/repos","events_url":"https://api.github.com/users/tyruk/events{/privacy}","received_events_url":"https://api.github.com/users/tyruk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-18T08:01:44Z","updated_at":"2016-07-18T18:37:07Z","closed_at":null,"body":"Due to debounce mechanism (function buffer), the forceAlign method may be triggered even after component was removed from DOM tree. This will result in findDOMNode was called on an unmounted component error.\r\n\r\nThe easy fix is to check if component is mounted, something like\r\n\r\n    forceAlign() {\r\n        const props = this.props;\r\n        if (!props.disabled && ReactDOM.isMounted(this)) {\r\n            const source = ReactDOM.findDOMNode(this);\r\n            props.onAlign(source, align(source, props.target(), props.align));\r\n        }\r\n    },\r\n\r\n\r\nbut since isMounted method is deprecated, this isn't probably a best solution"},"comment":{"url":"https://api.github.com/repos/react-component/align/issues/comments/233418308","html_url":"https://github.com/react-component/align/issues/7#issuecomment-233418308","issue_url":"https://api.github.com/repos/react-component/align/issues/7","id":233418308,"user":{"login":"Tlapi","id":2815391,"avatar_url":"https://avatars.githubusercontent.com/u/2815391?v=3","gravatar_id":"","url":"https://api.github.com/users/Tlapi","html_url":"https://github.com/Tlapi","followers_url":"https://api.github.com/users/Tlapi/followers","following_url":"https://api.github.com/users/Tlapi/following{/other_user}","gists_url":"https://api.github.com/users/Tlapi/gists{/gist_id}","starred_url":"https://api.github.com/users/Tlapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tlapi/subscriptions","organizations_url":"https://api.github.com/users/Tlapi/orgs","repos_url":"https://api.github.com/users/Tlapi/repos","events_url":"https://api.github.com/users/Tlapi/events{/privacy}","received_events_url":"https://api.github.com/users/Tlapi/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T18:37:07Z","updated_at":"2016-07-18T18:37:07Z","body":"+1 "}}
{"actor":{"display_login":"Tlapi"}}