cedricdelpoux / react-responsive-masonry

React responsive masonry component built with css flexbox
https://cedricdelpoux.github.io/react-responsive-masonry/
MIT License
377 stars 37 forks source link

doesn't work with server-side rendering #9

Closed edoroshenko closed 6 years ago

edoroshenko commented 6 years ago

It relies on React hook componentDidMount and that is never being called on server.

edoroshenko commented 6 years ago

Created #10 with fix & tests

cedricdelpoux commented 6 years ago

@edoroshenko Thank you for reporting and fixing this. I put some comments on your PR

cedricdelpoux commented 6 years ago

I merged. Thank you. I will publish a new version

cedricdelpoux commented 6 years ago

Please checkout the v1.5.0