loktar00 / loktar00/react-lazy-load

Lazy Load on Array of Images issue

Open
#129 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
980
Forks
163
PR merge metrics
No merged PRs in 30d

Description

I am having trouble doing the lazy load on an array of images. It seems to just load my whole array at first instead of it one by one.

```react
const gallery = images.map((obj, i) => {
return (



);
});

```
Is there a way to resolve my issue?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the mapped gallery and the LazyLoad wrapper shown in the report. Trace how the component handles multiple children and viewport entry, then verify that images load individually as they enter the viewport rather than all at initial render.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.