{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/4892","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/4892/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/4892/comments","events_url":"https://api.github.com/repos/facebook/react/issues/4892/events","html_url":"https://github.com/facebook/react/issues/4892","id":106875171,"number":4892,"title":"unmountComponentAtNode doesn't unbind in-flight listeners, throws opaque error.","user":{"login":"lutherism","id":5459791,"avatar_url":"https://avatars1.githubusercontent.com/u/5459791?v=4","gravatar_id":"","url":"https://api.github.com/users/lutherism","html_url":"https://github.com/lutherism","followers_url":"https://api.github.com/users/lutherism/followers","following_url":"https://api.github.com/users/lutherism/following{/other_user}","gists_url":"https://api.github.com/users/lutherism/gists{/gist_id}","starred_url":"https://api.github.com/users/lutherism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lutherism/subscriptions","organizations_url":"https://api.github.com/users/lutherism/orgs","repos_url":"https://api.github.com/users/lutherism/repos","events_url":"https://api.github.com/users/lutherism/events{/privacy}","received_events_url":"https://api.github.com/users/lutherism/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-09-16T22:16:51Z","updated_at":"2017-09-20T01:10:40Z","closed_at":"2017-09-20T01:10:40Z","author_association":"NONE","body":"Our React app was triggering the following error during navigation events:\n\n`Uncaught TypeError: Cannot read property 'firstChild' of undefined`\n\nThe error was occurring in the function `findComponentRoot`, when it failed to find a component for an event callback.\n\nIn our app, this was happening when we would navigate during a blur event, and call `unmountComponentAtNode` on the rendering, in order to refresh the page. The docs for `unmountComponentAtNode` say\n\n> Remove a mounted React component from the DOM and clean up its event handlers and state\n\nHowever, this does not seem to be the case. After we refresh the page with `unmountComponentAtNode`, there were other React-bound callbacks still in React's queue for that event. Leading to the error.\n\nThe docs and intuition seem to imply `unmountComponentAtNode` should clear these callbacks, since it knows the components will no longer exist to handle them.\n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/330716340","html_url":"https://github.com/facebook/react/issues/4892#issuecomment-330716340","issue_url":"https://api.github.com/repos/facebook/react/issues/4892","id":330716340,"user":{"login":"aweary","id":6886061,"avatar_url":"https://avatars2.githubusercontent.com/u/6886061?v=4","gravatar_id":"","url":"https://api.github.com/users/aweary","html_url":"https://github.com/aweary","followers_url":"https://api.github.com/users/aweary/followers","following_url":"https://api.github.com/users/aweary/following{/other_user}","gists_url":"https://api.github.com/users/aweary/gists{/gist_id}","starred_url":"https://api.github.com/users/aweary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aweary/subscriptions","organizations_url":"https://api.github.com/users/aweary/orgs","repos_url":"https://api.github.com/users/aweary/repos","events_url":"https://api.github.com/users/aweary/events{/privacy}","received_events_url":"https://api.github.com/users/aweary/received_events","type":"User","site_admin":false},"created_at":"2017-09-20T01:10:40Z","updated_at":"2017-09-20T01:10:40Z","author_association":"COLLABORATOR","body":"Since there's no repro provided and there's been no activity for almost 2 years, I'm going to close this out. If this is still an issue with the latest version of React, please provide an example reproduction the issue so we can verify.\r\n\r\nThanks!"}}
{"actor":{"display_login":"aweary"}}