{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/83","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/83/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/83/events","html_url":"https://github.com/airbnb/enzyme/issues/83","id":122972694,"number":83,"title":"How to unmount mounted components?","user":{"login":"pierlo-upitup","id":1078545,"avatar_url":"https://avatars.githubusercontent.com/u/1078545?v=3","gravatar_id":"","url":"https://api.github.com/users/pierlo-upitup","html_url":"https://github.com/pierlo-upitup","followers_url":"https://api.github.com/users/pierlo-upitup/followers","following_url":"https://api.github.com/users/pierlo-upitup/following{/other_user}","gists_url":"https://api.github.com/users/pierlo-upitup/gists{/gist_id}","starred_url":"https://api.github.com/users/pierlo-upitup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierlo-upitup/subscriptions","organizations_url":"https://api.github.com/users/pierlo-upitup/orgs","repos_url":"https://api.github.com/users/pierlo-upitup/repos","events_url":"https://api.github.com/users/pierlo-upitup/events{/privacy}","received_events_url":"https://api.github.com/users/pierlo-upitup/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/airbnb/enzyme/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/airbnb/enzyme/labels/Good%20First%20Task","name":"Good First Task","color":"0052cc"},{"url":"https://api.github.com/repos/airbnb/enzyme/labels/Mount","name":"Mount","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-18T15:53:08Z","updated_at":"2015-12-21T08:39:13Z","closed_at":null,"body":"It would be really nice if the `ReactWrapper` would expose a `.unmount()` function that would behind the scenes perform something similar to doing `mountedComponent.getInstance().componentWillUnmount();` for those components rendered with  `mount()`. \r\nIt would be also OK if the docs would mention what is the recommended way of doing this, too.\r\n\r\nA use case for this is to prevent leaking listeners bound during `componentWillMount` calls."},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/166233317","html_url":"https://github.com/airbnb/enzyme/issues/83#issuecomment-166233317","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/83","id":166233317,"user":{"login":"pierlo-upitup","id":1078545,"avatar_url":"https://avatars.githubusercontent.com/u/1078545?v=3","gravatar_id":"","url":"https://api.github.com/users/pierlo-upitup","html_url":"https://github.com/pierlo-upitup","followers_url":"https://api.github.com/users/pierlo-upitup/followers","following_url":"https://api.github.com/users/pierlo-upitup/following{/other_user}","gists_url":"https://api.github.com/users/pierlo-upitup/gists{/gist_id}","starred_url":"https://api.github.com/users/pierlo-upitup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierlo-upitup/subscriptions","organizations_url":"https://api.github.com/users/pierlo-upitup/orgs","repos_url":"https://api.github.com/users/pierlo-upitup/repos","events_url":"https://api.github.com/users/pierlo-upitup/events{/privacy}","received_events_url":"https://api.github.com/users/pierlo-upitup/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T08:39:13Z","updated_at":"2015-12-21T08:39:13Z","body":"I wonder if it would make sense to additionally perform an `React.unmountComponentAtNode(this.component.instance().getDOMNode());`..."}}