Aljullu / react-lazy-load-image-component

React Component to lazy load images and components using a HOC to track window scroll position.
https://www.npmjs.com/package/react-lazy-load-image-component
MIT License
1.46k stars 110 forks source link

LazyLoadComponent's placeholder is visible even when the image is in viewport. #128

Open Anubhav-Joria opened 11 months ago

Anubhav-Joria commented 11 months ago

Bug description I am using LazyLoadComponent and using a placeholder inside it. The issue is that sometimes when my image is in the viewport, the placeholder is still visible instead of the actual image, this issue occurs during initial render only. The issue resolves when i perform any activity such as reload the webpage, scroll down and again scroll up

Expected behavior When the image appears in the viewport then placeholder image should be replaced with actual image.

Screenshots image