Neovici/cosmoz-page-router

View on GitHub

Showing 1 of 4 total issues

Function useHashParam has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useHashParam = (hashParam?: string) => {
    const parameterized = useMemo(() => parameterize(hashParam), [hashParam]),
        [param, setParam] = useState(parameterized),
        ref = useRef(param);

Severity: Minor
Found in src/use-hash-param.ts - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language