{"action":"created","issue":{"url":"https://api.github.com/repos/omcljs/om/issues/414","labels_url":"https://api.github.com/repos/omcljs/om/issues/414/labels{/name}","comments_url":"https://api.github.com/repos/omcljs/om/issues/414/comments","events_url":"https://api.github.com/repos/omcljs/om/issues/414/events","html_url":"https://github.com/omcljs/om/issues/414","id":111554526,"number":414,"title":"[om.next] access DOM node from within component","user":{"login":"dvcrn","id":688326,"avatar_url":"https://avatars.githubusercontent.com/u/688326?v=3","gravatar_id":"","url":"https://api.github.com/users/dvcrn","html_url":"https://github.com/dvcrn","followers_url":"https://api.github.com/users/dvcrn/followers","following_url":"https://api.github.com/users/dvcrn/following{/other_user}","gists_url":"https://api.github.com/users/dvcrn/gists{/gist_id}","starred_url":"https://api.github.com/users/dvcrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvcrn/subscriptions","organizations_url":"https://api.github.com/users/dvcrn/orgs","repos_url":"https://api.github.com/users/dvcrn/repos","events_url":"https://api.github.com/users/dvcrn/events{/privacy}","received_events_url":"https://api.github.com/users/dvcrn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-15T06:37:27Z","updated_at":"2015-10-15T11:18:46Z","closed_at":null,"body":"In om legacy this was possible:\r\n\r\n```clj\r\n(defn foo [state owner]\r\n  (reify\r\n      om/IRender\r\n    (render [this]\r\n      (dom/div nil \"Foo\"))\r\n      om/IDidMount\r\n    (did-mount [_]\r\n      (.log js/console (om/get-node owner)))))\r\n```\r\n\r\nIn next, the following throws `Uncaught TypeError: component.getDOMNode is not a function`: \r\n```clj\r\n(defui Foo\r\n  Object\r\n  (componentDidMount [this]\r\n                     (.log js/console  (om/dom-node this)))\r\n  (render [this]\r\n          (dom/div nil \"Foo\")))\r\n```\r\n\r\nIs there a new way of accessing the DOM inside didMount? "},"comment":{"url":"https://api.github.com/repos/omcljs/om/issues/comments/148356936","html_url":"https://github.com/omcljs/om/issues/414#issuecomment-148356936","issue_url":"https://api.github.com/repos/omcljs/om/issues/414","id":148356936,"user":{"login":"GetContented","id":5661934,"avatar_url":"https://avatars.githubusercontent.com/u/5661934?v=3","gravatar_id":"","url":"https://api.github.com/users/GetContented","html_url":"https://github.com/GetContented","followers_url":"https://api.github.com/users/GetContented/followers","following_url":"https://api.github.com/users/GetContented/following{/other_user}","gists_url":"https://api.github.com/users/GetContented/gists{/gist_id}","starred_url":"https://api.github.com/users/GetContented/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GetContented/subscriptions","organizations_url":"https://api.github.com/users/GetContented/orgs","repos_url":"https://api.github.com/users/GetContented/repos","events_url":"https://api.github.com/users/GetContented/events{/privacy}","received_events_url":"https://api.github.com/users/GetContented/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T11:18:46Z","updated_at":"2015-10-15T11:18:46Z","body":"@swannodette apologies :)"}}