react-viewport-utils
react-viewport-utils copied to clipboard
Utility components for working with the viewport in react
Proposal: ``` const isScrollingDown = useScroll( ({ isScrollingDown }) => isScrollingDown, ) ``` should only fire in case `isScrollingDown` changes.
There should be an option to define a server width and height as a default.
The performance measurement is currently not super precise as it only collects performance information from the direct JavaScript handler that is called. It does not take layouts triggered by writes...
In a lot of cases, the priority of an update is based on whether an element is in the viewport or not. With a simple helper function, we can make...
**PR Description:** This update is essential to ensure compatibility with React 19, particularly addressing changes related to ref types. The modification includes the removal of the deprecated type `MutableRefObject`. **Context:**...