{"action":"opened","issue":{"url":"https://api.github.com/repos/jankuca/react-test-render/issues/1","labels_url":"https://api.github.com/repos/jankuca/react-test-render/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jankuca/react-test-render/issues/1/comments","events_url":"https://api.github.com/repos/jankuca/react-test-render/issues/1/events","html_url":"https://github.com/jankuca/react-test-render/issues/1","id":122731173,"number":1,"title":"componentWillUnmount is not being called","user":{"login":"jankuca","id":367262,"avatar_url":"https://avatars.githubusercontent.com/u/367262?v=3","gravatar_id":"","url":"https://api.github.com/users/jankuca","html_url":"https://github.com/jankuca","followers_url":"https://api.github.com/users/jankuca/followers","following_url":"https://api.github.com/users/jankuca/following{/other_user}","gists_url":"https://api.github.com/users/jankuca/gists{/gist_id}","starred_url":"https://api.github.com/users/jankuca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jankuca/subscriptions","organizations_url":"https://api.github.com/users/jankuca/orgs","repos_url":"https://api.github.com/users/jankuca/repos","events_url":"https://api.github.com/users/jankuca/events{/privacy}","received_events_url":"https://api.github.com/users/jankuca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T13:07:46Z","updated_at":"2015-12-17T13:07:46Z","closed_at":null,"body":"The `componentWillUnmount` lifecycle method is not being called when a renderer is reused to render a component of a different type (which results in a new component instance being created and mounted).\r\n\r\nIntroduced by f3090d54a554c71b27e8f0fa7c871f837b72b853\r\n\r\n```javascript\r\nconst renderer = reactTestRender.createRenderer(ComponentA)\r\nrenderer.render()\r\nrenderer._Component = ComponentB\r\nrenderer.render()\r\n// ComponentA#componentWillUnmount is not called.\r\n```\r\n\r\nThis is why the component type cannot be swapped for a single renderer."}}