loktar00 / loktar00/react-lazy-load

remove wrapper height once loaded

Open
#115 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
980
Forks
163
PR merge metrics
No merged PRs in 30d

Description

I'm using the `height` prop with a roughly estimated value to prevent all items from loading immediately (since their initial height is 0, as long as the images have not been loaded). once an item has loaded, I'd like to remove the height / set it to `auto`.

it would be nice if the lib provided an option for this. — in the meantime, what would be the easiest way to achieve this?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the component's height prop and the lifecycle used when children or images finish loading; no specific file or test is named in the issue. Done means an option can remove the wrapper height or set it to auto after an item has loaded, with coverage for the resulting behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.