{"action":"reopened","issue":{"url":"https://api.github.com/repos/STRML/react-grid-layout/issues/304","repository_url":"https://api.github.com/repos/STRML/react-grid-layout","labels_url":"https://api.github.com/repos/STRML/react-grid-layout/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/STRML/react-grid-layout/issues/304/comments","events_url":"https://api.github.com/repos/STRML/react-grid-layout/issues/304/events","html_url":"https://github.com/STRML/react-grid-layout/issues/304","id":168912433,"number":304,"title":"onLayoutChange is not triggers if children's changed, whithout changed children's count.","user":{"login":"Strate","id":392644,"avatar_url":"https://avatars.githubusercontent.com/u/392644?v=3","gravatar_id":"","url":"https://api.github.com/users/Strate","html_url":"https://github.com/Strate","followers_url":"https://api.github.com/users/Strate/followers","following_url":"https://api.github.com/users/Strate/following{/other_user}","gists_url":"https://api.github.com/users/Strate/gists{/gist_id}","starred_url":"https://api.github.com/users/Strate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Strate/subscriptions","organizations_url":"https://api.github.com/users/Strate/orgs","repos_url":"https://api.github.com/users/Strate/repos","events_url":"https://api.github.com/users/Strate/events{/privacy}","received_events_url":"https://api.github.com/users/Strate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-02T15:17:08Z","updated_at":"2016-08-16T17:55:47Z","closed_at":null,"body":"When children of component changed, but count of children isn't, layout is not recalculated.\r\nIt happes due to comparison only lengths of `this.props.children` and `nexProps.children`, completely ignoring children's content. Quick example:\r\n\r\n```jsx\r\nrender() {\r\n  <ReactGridLayout>\r\n    <div key=\"1\" />\r\n    {this.state.flag ? <div key=\"2\" /> : <div key=\"3\" />}\r\n  </ReactGridLayout>\r\n}\r\n```\r\nIf `this.state.flag` changed, layout should be recalculated. But there is no recalculation.\r\n\r\n/cc @javacer"}}
{"actor":{"display_login":"STRML"}}