-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visibility status and unload #26
Comments
This is more a question than anything else, but wouldn't unloading images just be additional unnecessary work? Unless you are using a virtualised list for a huge amount of content, what would the benefit be? |
Hi @designbyadrian , and sorry for the late response! For virtualisation, I like react-window. Now, in terms of |
@fpapado Thank you for your reply! |
Hello! I'm trying to replace a combo with react-visibility-sensor and react-image with react-lazy-images because of your SSR and srcset support, but one feature I'm missing is an onChange prop, so I can get events for when the component is considered in or out of view.
react-intersection-observer has an InView component. It would be nice to leverage that in some way.
Edit: or maybe I just use the InView component myself? Would that double up the event listeners?
Related, what's your opinion on unloading images when out of view?
The text was updated successfully, but these errors were encountered: