react-lazyload: Doesn't render children in React 16.0

I have a component:

<Lazyload once height={200}><Child/></Lazyload>

This works in React 15.6.1, but not in React 16.0. The Child component’s ComponentWillMount lifecycle method isn’t being called. Neither is the render method.

I tried making once=false, still doesn’t work.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 22

Most upvoted comments

I will look into this.

If everybody is okay, then I’m going to merge #126 and publish a new minor version.

there is already a pending one #126, I just want to make sure everything is fine since so many people are ‘reporting’ this issue.

Hopefully I will push some commits around this weekend to solve this issue, stay tuned @ryanmcafee