shawnmcknight/react-scrollbar-size

View on GitHub

Showing 1 of 1 total issue

Function useScrollbarSize has 39 lines of code (exceeds 25 allowed). Consider refactoring.
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
Severity: Minor
Found in src/useScrollbarSize.ts - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language