loktar00 / react-lazy-load

React component that renders children elements when they enter the viewport.
MIT License
979 stars 166 forks source link

in react @16.9.0 Warning:componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details. #135

Closed chenshufang2015 closed 2 years ago

chenshufang2015 commented 5 years ago

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

reintroducing commented 5 years ago

Also just ran into this after updating, would love to hear if there are plans to update this library as it doesn't seem like its been touched for a long time.

jalvarson commented 5 years ago

Wondering the same. Is this library still maintained @loktar00 ?

hieusmiths commented 4 years ago

I think we should lookup a new lib for react using Hook. Or build Intersection Observer :)

loktar00 commented 4 years ago

I think we should lookup a new lib for react using Hook. Or build Intersection Observer :)

I agree, I definitely let this slip, got too busy with the day job :/

smolak commented 4 years ago

@loktar00 - will you work on Intersection Observer implementation?

loktar00 commented 4 years ago

@smolak I might as well, was on vacation just got back yesterday.. kind of want to look at the entire component with fresh eyes honestly. It might become a 3.0 with the changes required.

nicoandresr commented 3 years ago

I'm still got this error with version 3.1.13.

loktar00 commented 2 years ago

This should now be resolved with 4.0.0