useDocumentVisibility ​
browser
test coverage
Last changed: 2 months ago
Hook that provides the current visibility state of the document
typescript
import { useDocumentVisibility } from '@siberiacancode/reactuse';
Usage ​
typescript
const visibilityState = useDocumentVisibility();