twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.86k stars 487 forks source link

If you use react-lazyload in a subcomponent loaded with React.lazy, the image will not load? #218

Closed fengyun2 closed 5 years ago

fengyun2 commented 5 years ago

If you use react-lazyload in a subcomponent loaded with React.lazy, the image will not load?

ameerthehacker commented 5 years ago

I believe this is an intended effect. If you want the child component to also have the same effect please wrap the child also in lazyload component provided by react-lazyload