{"action":"opened","issue":{"url":"https://api.github.com/repos/styled-components/styled-components/issues/985","repository_url":"https://api.github.com/repos/styled-components/styled-components","labels_url":"https://api.github.com/repos/styled-components/styled-components/issues/985/labels{/name}","comments_url":"https://api.github.com/repos/styled-components/styled-components/issues/985/comments","events_url":"https://api.github.com/repos/styled-components/styled-components/issues/985/events","html_url":"https://github.com/styled-components/styled-components/issues/985","id":242145467,"number":985,"title":"Unexpectedly invokes componentWillUnmount() method","user":{"login":"pawelgrzybek","id":3697104,"avatar_url":"https://avatars0.githubusercontent.com/u/3697104?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelgrzybek","html_url":"https://github.com/pawelgrzybek","followers_url":"https://api.github.com/users/pawelgrzybek/followers","following_url":"https://api.github.com/users/pawelgrzybek/following{/other_user}","gists_url":"https://api.github.com/users/pawelgrzybek/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelgrzybek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelgrzybek/subscriptions","organizations_url":"https://api.github.com/users/pawelgrzybek/orgs","repos_url":"https://api.github.com/users/pawelgrzybek/repos","events_url":"https://api.github.com/users/pawelgrzybek/events{/privacy}","received_events_url":"https://api.github.com/users/pawelgrzybek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-11T18:41:47Z","updated_at":"2017-07-11T18:41:47Z","closed_at":null,"body":"## Version\r\n2.1.1\r\n\r\n## Reproduction\r\n\r\nLove the way it works guys, amazing work! Came across one issue. Styled-components unexpectedly invoke a `componentWillUnmount()` lifecycle hook on a parent component. Let's have a look at two examples:\r\n\r\n**1. React + ReactDOM**\r\n\r\nTwo components. The child one triggers a state change on parent one. It doesn't invoke `componentWillUnmount()` — as expected.\r\n\r\nhttps://codepen.io/pawelgrzybek/pen/qjLdbq\r\n\r\n**2. React + ReactDOM + styled-components**\r\n\r\nTwo components. The child one triggers a state change on parent one. The parent component is styled by styled-components (and this is the only difference between compared to previous CodePen). It does invoke `componentWillUnmount()` — unexpected.\r\n\r\nhttps://codepen.io/pawelgrzybek/pen/vZvNmM\r\n\r\n## Expected Behavior\r\n\r\nNot to trigger `componentWillUnmount()`\r\n\r\n## Actual Behavior\r\n\r\nInvokes `componentWillUnmount()`\r\n"}}
{"actor":{"display_login":"pawelgrzybek"}}