nikitaeverywhere / react-xmasonry

Simple, minimalistic and featured native masonry layout for React JS.
https://zitros.github.io/react-xmasonry
MIT License
90 stars 12 forks source link

React v16.12.0: deprecated lifecycles #18

Closed jellysquider closed 4 years ago

jellysquider commented 4 years ago

When using XMasonry I receive the following warnings about componentWillMount and componentWillReceiveProps: warnings

Is there a plan to fix them in the future?

Thank you so much for making this!

nikitaeverywhere commented 4 years ago

Hello @jellysquider! Thank you for letting me know for this update in React.

Luckily I was able to fix this by refactoring things without breaking changes. v3.0.2 should now vanish these warnings.

Please let me know if it does! Thank you!

nikitaeverywhere commented 4 years ago

Oops I see server-side rendering is affected

nikitaeverywhere commented 4 years ago

Fixed by 8ef73646ed2feb7959291086c8cad71376327629.

jellysquider commented 4 years ago

Great, thank you so much!