useWindowContext()

This hook is used for registering callbacks for changes in the dimensions of the window.

In most cases you should use the useViewportContext instead, unless you need to account for dynamic address bar heights on mobile.

© 2022
🐞

Window Properties

WindowWidth: undefinedpx

WindowHeight: undefinedpx