{"action":"created","issue":{"url":"https://api.github.com/repos/ojame/react-scrollbars/issues/28","labels_url":"https://api.github.com/repos/ojame/react-scrollbars/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/ojame/react-scrollbars/issues/28/comments","events_url":"https://api.github.com/repos/ojame/react-scrollbars/issues/28/events","html_url":"https://github.com/ojame/react-scrollbars/issues/28","id":100800415,"number":28,"title":"Warning: ScrollbarWrapper is accessing getDOMNode or findDOMNode inside its render().","user":{"login":"paulle81","id":13240062,"avatar_url":"https://avatars.githubusercontent.com/u/13240062?v=3","gravatar_id":"","url":"https://api.github.com/users/paulle81","html_url":"https://github.com/paulle81","followers_url":"https://api.github.com/users/paulle81/followers","following_url":"https://api.github.com/users/paulle81/following{/other_user}","gists_url":"https://api.github.com/users/paulle81/gists{/gist_id}","starred_url":"https://api.github.com/users/paulle81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulle81/subscriptions","organizations_url":"https://api.github.com/users/paulle81/orgs","repos_url":"https://api.github.com/users/paulle81/repos","events_url":"https://api.github.com/users/paulle81/events{/privacy}","received_events_url":"https://api.github.com/users/paulle81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T15:32:43Z","updated_at":"2015-08-14T09:12:49Z","closed_at":null,"body":"Hi there,\r\n\r\nGetting the following warning when mounting the component.\r\n\r\nWarning: ScrollbarWrapper is accessing getDOMNode or findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.\r\n\r\nSeems to be mixins/scrollbar.jsx accessing getDOMNode then directly calling into render causing the problem. Any plans on improving this?"},"comment":{"url":"https://api.github.com/repos/ojame/react-scrollbars/issues/comments/131034686","html_url":"https://github.com/ojame/react-scrollbars/issues/28#issuecomment-131034686","issue_url":"https://api.github.com/repos/ojame/react-scrollbars/issues/28","id":131034686,"user":{"login":"ojame","id":2898239,"avatar_url":"https://avatars.githubusercontent.com/u/2898239?v=3","gravatar_id":"","url":"https://api.github.com/users/ojame","html_url":"https://github.com/ojame","followers_url":"https://api.github.com/users/ojame/followers","following_url":"https://api.github.com/users/ojame/following{/other_user}","gists_url":"https://api.github.com/users/ojame/gists{/gist_id}","starred_url":"https://api.github.com/users/ojame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojame/subscriptions","organizations_url":"https://api.github.com/users/ojame/orgs","repos_url":"https://api.github.com/users/ojame/repos","events_url":"https://api.github.com/users/ojame/events{/privacy}","received_events_url":"https://api.github.com/users/ojame/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T09:12:49Z","updated_at":"2015-08-14T09:12:49Z","body":"Looks like it's somewhere further up the chain (just a method from the mixin).\r\n\r\nThere's a few things I need to do with this library including re-writing it so it's not a mixin (use ES6 classes) and to have a [better API](https://github.com/threepointone/react-metronome).\r\n\r\nSo yep, definitely plans on improving this :)."}}