loktar00 / react-lazy-load

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

Support for Image Not Found Errors #91

Closed vsc-github closed 6 years ago

vsc-github commented 7 years ago

Thanks for such a light weight component. I wrap all my images in it. Since all my images are wrapped in this component, it'd be nice if I could tweak it somehow to handle Image Not Found errors(404). So if an image couldn't load, it would be handled gracefully. Any ideas how we can go about that?

stereobooster commented 7 years ago

also will be useful for offline-first case