Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bvaughn/react-window
/ getOwnerWindow
Function
getOwnerWindow
lib/utils/getOwnerWindow.ts:1–5 ·
view source on GitHub ↗
( element: Element | null | undefined )
Source
from the content-addressed store, hash-verified
1
export
function
getOwnerWindow(
2
element: Element | null | undefined
3
): Window & typeof globalThis {
4
return
element?.ownerDocument.defaultView ?? window;
5
}
Callers
10
useDynamicRowHeight
Function · 0.90
getResizeObserverClass
Function · 0.90
getScrollTarget
Function · 0.90
isSelfScrolling
Function · 0.90
getScrollPadding
Function · 0.90
observePrecedingContent
Function · 0.90
useScrollToIndex
Function · 0.90
useVirtualizer
Function · 0.90
useAfterResizeObserverNotifications
Function · 0.90
useIsScrolling
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected