{"action":"created","issue":{"url":"https://api.github.com/repos/dantrain/react-stonecutter/issues/12","repository_url":"https://api.github.com/repos/dantrain/react-stonecutter","labels_url":"https://api.github.com/repos/dantrain/react-stonecutter/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/dantrain/react-stonecutter/issues/12/comments","events_url":"https://api.github.com/repos/dantrain/react-stonecutter/issues/12/events","html_url":"https://github.com/dantrain/react-stonecutter/issues/12","id":167515797,"number":12,"title":"when add item too frequent,  layout got exception","user":{"login":"stormslowly","id":415655,"avatar_url":"https://avatars.githubusercontent.com/u/415655?v=3","gravatar_id":"","url":"https://api.github.com/users/stormslowly","html_url":"https://github.com/stormslowly","followers_url":"https://api.github.com/users/stormslowly/followers","following_url":"https://api.github.com/users/stormslowly/following{/other_user}","gists_url":"https://api.github.com/users/stormslowly/gists{/gist_id}","starred_url":"https://api.github.com/users/stormslowly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormslowly/subscriptions","organizations_url":"https://api.github.com/users/stormslowly/orgs","repos_url":"https://api.github.com/users/stormslowly/repos","events_url":"https://api.github.com/users/stormslowly/events{/privacy}","received_events_url":"https://api.github.com/users/stormslowly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-26T03:53:28Z","updated_at":"2016-07-29T00:05:31Z","closed_at":null,"body":"\r\n![image](https://cloud.githubusercontent.com/assets/415655/17124774/23545866-5320-11e6-9891-6959595c272e.png)\r\n\r\n\r\nthe reason is that  when  `imagesloaded`  callback is called,  the DOM still don't have height (0).\r\nso when layout try to layout the item it  throws the error.\r\n\r\nmy current  solution is using  lodash  `debounce` to slow down the speed of add items.\r\n\r\ni will fix it by check the height element when imagesloaded\r\n\r\n\r\n\r\n\r\n```\r\nUncaught Error: Each child must have an \"itemHeight\" prop or an \"itemRect.height\" prop.(anonymous function) @ react-stonecutter.js:1298t.default @ react-stonecutter.js:1292t.default.u.default.createClass.doLayout @ react-stonecutter.js:403CSSGrid_componentWillReceiveProps @ react-stonecutter.js:399O.updateComponent @ ReactCompositeComponent.js:601O.receiveComponent @ ReactCompositeComponent.js:534s.receiveComponent @ ReactReconciler.js:131l.updateChildren @ ReactChildReconciler.js:94D.Mixin._reconcilerUpdateChildren @ ReactMultiChild.js:213D.Mixin._updateChildren @ ReactMultiChild.js:315D.Mixin.updateChildren @ ReactMultiChild.js:303v.Mixin._updateDOMChildren @ ReactDOMComponent.js:938v.Mixin.updateComponent @ ReactDOMComponent.js:767v.Mixin.receiveComponent @ ReactDOMComponent.js:723s.receiveComponent @ ReactReconciler.js:131O._updateRenderedComponent @ ReactCompositeComponent.js:737O._performComponentUpdate @ ReactCompositeComponent.js:715O.updateComponent @ ReactCompositeComponent.js:634O.performUpdateIfNecessary @ ReactCompositeComponent.js:548s.performUpdateIfNecessary @ ReactReconciler.js:165u @ ReactUpdates.js:151i.perform @ Transaction.js:138i.perform @ Transaction.js:138p.perform @ ReactUpdates.js:90T @ ReactUpdates.js:173i.closeAll @ Transaction.js:204i.perform @ Transaction.js:151d.batchedUpdates @ ReactDefaultBatchingStrategy.js:63s @ ReactUpdates.js:201o @ ReactUpdateQueue.js:25f.enqueueSetState @ ReactUpdateQueue.js:209o.setState @ ReactComponent.js:64u.default.createClass.updateRects @ react-stonecutter.js:1208r @ index.js:149d @ index.js:196p @ index.js:184\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dantrain/react-stonecutter/issues/comments/236060595","html_url":"https://github.com/dantrain/react-stonecutter/issues/12#issuecomment-236060595","issue_url":"https://api.github.com/repos/dantrain/react-stonecutter/issues/12","id":236060595,"user":{"login":"rafaelcorreiapoli","id":12840136,"avatar_url":"https://avatars.githubusercontent.com/u/12840136?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelcorreiapoli","html_url":"https://github.com/rafaelcorreiapoli","followers_url":"https://api.github.com/users/rafaelcorreiapoli/followers","following_url":"https://api.github.com/users/rafaelcorreiapoli/following{/other_user}","gists_url":"https://api.github.com/users/rafaelcorreiapoli/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelcorreiapoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelcorreiapoli/subscriptions","organizations_url":"https://api.github.com/users/rafaelcorreiapoli/orgs","repos_url":"https://api.github.com/users/rafaelcorreiapoli/repos","events_url":"https://api.github.com/users/rafaelcorreiapoli/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelcorreiapoli/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T00:05:31Z","updated_at":"2016-07-29T00:05:31Z","body":"It's giving me this error:\r\nUncaught TypeError: Cannot set property '.$LZsHnrJtRmTwBC88o' of undefined\r\n\r\n(anonymous function)\t@\treact-stonecutter.js:1193\r\nproto.emitEvent\t@\tev-emitter.js:98\r\nImagesLoaded.complete\t@\timagesloaded.js:244\r\nImagesLoaded.progress\t@\timagesloaded.js:232\r\n(anonymous function)\t@\timagesloaded.js:212"}}
{"actor":{"display_login":"rafaelcorreiapoli"}}