We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c33eed7 commit e8be8f8Copy full SHA for e8be8f8
packages/core/useDocumentVisibility/index.ts
@@ -13,7 +13,7 @@ import { useEventListener } from '../useEventListener'
13
export function useDocumentVisibility(options: ConfigurableDocument = {}) {
14
const { document = defaultDocument } = options
15
if (!document)
16
- return shallowRef('visible')
+ return shallowRef<DocumentVisibilityState>('visible')
17
18
const visibility = shallowRef(document.visibilityState)
19
0 commit comments