benhowell/react-grid-gallery

change deprecated lifecycle hooks

mobji opened this issue · 2 comments

mobji commented

Expected behaviour

The image gallery should be working after react's 17.0 release.

Actual behaviour

the Gallery and Lightbox components are using deprecated lifecycle hooks.

Steps to reproduce behaviour

Using react-grid-gallery with lightbox anywhere in your application

Hi @mobji!

As v0.5.6 released we no longer use componentWillReceiveProps hook in Gallery component.

Lightbox is the part of react-images library we use as a dependency. We are considering getting rid of lightbox functionality to fix your issue and be more agile in the future. Discussion on this topic is started here. Please feel free to join.

Lightbox was stripped out in the v1.0.0 so we do not use deprecated lifecycle hooks anymore