Open jrmyio opened 7 years ago
I am trying to handle the call of .layout() myself and looking at masonry's docs one can disable the layout by setting initLayout to false.
However this component doesn't use this option to disable the following lines that trigger layout:
componentWillReceiveProps: function() { this._timer = setTimeout(function() { this.masonry.reloadItems(); this.isMounted && this.isMounted() && this.forceUpdate(); }.bind(this), 0); }, componentDidUpdate: function() { this.performLayout(); this.imagesLoaded(); },
Yeah that's something that can be added easy enough. Are you comfortable enough to submit the required changes in a backwards compatible way?
I am trying to handle the call of .layout() myself and looking at masonry's docs one can disable the layout by setting initLayout to false.
However this component doesn't use this option to disable the following lines that trigger layout: