joshwnj / joshwnj/react-visibility-sensor
VisibilitySensor doesn't fire on smaller devices
Open
- Dominant language
- JavaScript
- Stars
- 2.3k
- Forks
- 192
- PR merge metrics
- No merged PRs in 30d
Description
I'm combining it with the [](https://github.com/gkaemmer/react-fade-in) component. It does fire on desktop-size screens, but not anything smaller, is this a known issue?
```
const [stateVisible, setStateVisible] = useState(false);
function onChange(isVisible:any) {
if(isVisible){
setStateVisible(true);
}
}
return(
// bzbz some code
);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.