joshwnj / joshwnj/react-visibility-sensor

onChange is not triggered when required component reaches viewport

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

Description

Hi,

I have a home page with few components. When I reach component 'x' , I need to trigger a state. It is not working. But `onChange` event triggered when initialize, but not on scroll. Please suggest what I am missing.

{
this.setState({
isButton: true
});
}}
>


`

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.