Showing 1 of 1 total issue
Function useScrollbarSize
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useScrollbarSize = (): ScrollbarMeasurements => {
const [dimensions, setDimensions] = useState({ height: 0, width: 0 });
const element = useRef<HTMLDivElement | null>(null);
// initialize resize event handler and state when mounted