{"action":"created","issue":{"url":"https://api.github.com/repos/STRML/react-grid-layout/issues/156","repository_url":"https://api.github.com/repos/STRML/react-grid-layout","labels_url":"https://api.github.com/repos/STRML/react-grid-layout/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/STRML/react-grid-layout/issues/156/comments","events_url":"https://api.github.com/repos/STRML/react-grid-layout/issues/156/events","html_url":"https://github.com/STRML/react-grid-layout/issues/156","id":132833978,"number":156,"title":"How should the parent pass in new layout(s)?","user":{"login":"STRML","id":1197375,"avatar_url":"https://avatars.githubusercontent.com/u/1197375?v=3","gravatar_id":"","url":"https://api.github.com/users/STRML","html_url":"https://github.com/STRML","followers_url":"https://api.github.com/users/STRML/followers","following_url":"https://api.github.com/users/STRML/following{/other_user}","gists_url":"https://api.github.com/users/STRML/gists{/gist_id}","starred_url":"https://api.github.com/users/STRML/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STRML/subscriptions","organizations_url":"https://api.github.com/users/STRML/orgs","repos_url":"https://api.github.com/users/STRML/repos","events_url":"https://api.github.com/users/STRML/events{/privacy}","received_events_url":"https://api.github.com/users/STRML/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/STRML/react-grid-layout/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-02-10T22:25:27Z","updated_at":"2016-02-14T20:22:32Z","closed_at":null,"body":"Related to #98\r\n\r\nThis is an open issue for comment.\r\n\r\nCurrently, the following methods are used to determine whether or not to reload the layout:\r\n\r\nRGL:\r\n\r\n`!_.isEqual(this.props.layout, nextProps.layout)`\r\n\r\nResponsiveRGL:\r\n\r\n``!_.isEqual(this.props.layouts, nextProps.layouts)`\r\n\r\nThis doesn't adequately cover some use issues, like:\r\n\r\n* (#98) - If I reset the layout, to what was originally passed in, the props haven't changed, so the layout doesn't reset.\r\n\r\nThis is actually very similar to the problem that caused me to rewrite `<Draggable>` in the first place. It's difficult, in React, to enforce a state reset on children at some times while allowing them to manage their own state at other times.\r\n\r\nShould users just simply grab a ref and `setState()` themselves? I don't know if I see a better option."},"comment":{"url":"https://api.github.com/repos/STRML/react-grid-layout/issues/comments/183968996","html_url":"https://github.com/STRML/react-grid-layout/issues/156#issuecomment-183968996","issue_url":"https://api.github.com/repos/STRML/react-grid-layout/issues/156","id":183968996,"user":{"login":"menelike","id":4238881,"avatar_url":"https://avatars.githubusercontent.com/u/4238881?v=3","gravatar_id":"","url":"https://api.github.com/users/menelike","html_url":"https://github.com/menelike","followers_url":"https://api.github.com/users/menelike/followers","following_url":"https://api.github.com/users/menelike/following{/other_user}","gists_url":"https://api.github.com/users/menelike/gists{/gist_id}","starred_url":"https://api.github.com/users/menelike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menelike/subscriptions","organizations_url":"https://api.github.com/users/menelike/orgs","repos_url":"https://api.github.com/users/menelike/repos","events_url":"https://api.github.com/users/menelike/events{/privacy}","received_events_url":"https://api.github.com/users/menelike/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T20:22:32Z","updated_at":"2016-02-14T20:22:32Z","body":"that what I tried first, but I then realized the component needs to be stateless and the impact on existing code can't be done with just a HOC:   "}}