Skip to content

useCurrentWindow

useCurrentWindow(): WindowHandle

Defined in: renderer/hooks/useCurrentWindow.ts:12

Hook to get the current window handle. Provides imperative access to window methods.

Uses useSyncExternalStore to subscribe to state changes, so this component only re-renders when window state actually changes (not on every parent render).

WindowHandle