{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/react-modal/issues/362","repository_url":"https://api.github.com/repos/reactjs/react-modal","labels_url":"https://api.github.com/repos/reactjs/react-modal/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-modal/issues/362/comments","events_url":"https://api.github.com/repos/reactjs/react-modal/issues/362/events","html_url":"https://github.com/reactjs/react-modal/issues/362","id":218424127,"number":362,"title":"Error: React DOM tree root should always have a node reference","user":{"login":"frodehansen2","id":462494,"avatar_url":"https://avatars2.githubusercontent.com/u/462494?v=3","gravatar_id":"","url":"https://api.github.com/users/frodehansen2","html_url":"https://github.com/frodehansen2","followers_url":"https://api.github.com/users/frodehansen2/followers","following_url":"https://api.github.com/users/frodehansen2/following{/other_user}","gists_url":"https://api.github.com/users/frodehansen2/gists{/gist_id}","starred_url":"https://api.github.com/users/frodehansen2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frodehansen2/subscriptions","organizations_url":"https://api.github.com/users/frodehansen2/orgs","repos_url":"https://api.github.com/users/frodehansen2/repos","events_url":"https://api.github.com/users/frodehansen2/events{/privacy}","received_events_url":"https://api.github.com/users/frodehansen2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-31T07:50:48Z","updated_at":"2017-03-31T08:32:22Z","closed_at":"2017-03-31T08:31:47Z","body":"### Summary:\r\n\"React DOM tree root should always have a node reference\"\r\n\r\n### Steps to reproduce:\r\nWe wrap the dialog component in an DialogLink component which controls the Dialog. We use this DialogLink component in lists which may have up to 1000 items. Because we don't want a lot of ReactModalPortal <divs> in our code for dialogs which may never be openend, the DialogLink does not render the Dialog if it is not open. When we use it this way, we get the \"React DOM tree root should always have a node reference\" when we close the dialog. Is there a way to use the dialog component like this without getteing the error? I recon the error comes because of the portal is not in the DOM when the dialog performs some cleanup.\r\n\r\n### Expected behavior:\r\nNo error thrown\r\n\r\n### Additional notes:\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/reactjs/react-modal/issues/comments/290650982","html_url":"https://github.com/reactjs/react-modal/issues/362#issuecomment-290650982","issue_url":"https://api.github.com/repos/reactjs/react-modal/issues/362","id":290650982,"user":{"login":"frodehansen2","id":462494,"avatar_url":"https://avatars2.githubusercontent.com/u/462494?v=3","gravatar_id":"","url":"https://api.github.com/users/frodehansen2","html_url":"https://github.com/frodehansen2","followers_url":"https://api.github.com/users/frodehansen2/followers","following_url":"https://api.github.com/users/frodehansen2/following{/other_user}","gists_url":"https://api.github.com/users/frodehansen2/gists{/gist_id}","starred_url":"https://api.github.com/users/frodehansen2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frodehansen2/subscriptions","organizations_url":"https://api.github.com/users/frodehansen2/orgs","repos_url":"https://api.github.com/users/frodehansen2/repos","events_url":"https://api.github.com/users/frodehansen2/events{/privacy}","received_events_url":"https://api.github.com/users/frodehansen2/received_events","type":"User","site_admin":false},"created_at":"2017-03-31T08:32:22Z","updated_at":"2017-03-31T08:32:22Z","body":"My bad - local error"}}
{"actor":{"display_login":"frodehansen2"}}