twobin / twobin/react-lazyload

feat req: lazyload recalls the last rendered component height

Open
#254 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
485
PR merge metrics
No merged PRs in 30d

Description

Hey, thank you for your time and effort for this library.

I would like to implement a feature in which react-lazyload remembers the last rendered height when the component is loaded.

At the moment `unmountIfInvisible` works well, but it messes up the scrolling in my app. Considering that the component has already been rendered during the unmount, its quite trivial to implement a `ref` and record the components rendered height that can be used for the placeholder height.

What are your thoughts regarding this?

Kind regards,
osphost

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.