eiriklv / react-masonry-component

A React.js component for using @desandro's Masonry
MIT License
1.44k stars 145 forks source link

Debounce layouts: fixes animation #114

Open TheBosZ opened 6 years ago

TheBosZ commented 6 years ago

This is a fix for #109.

Calls to masonry.layout() are now debounced.

There's also a new (default true) prop to turn on calls to layout() on componentUpdate.