Skip to content

Visibility status and unload #26

@designbyadrian

Description

@designbyadrian

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions