pankod/refine

View on GitHub
packages/core/src/hooks/router/use-get-to-path/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useGetToPath has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useGetToPath = (): GetToPathFn => {
  const routerType = useRouterType();
  const { resource: resourceFromRoute, resources } = useResource();
  const parsed = useParsed();

Severity: Minor
Found in packages/core/src/hooks/router/use-get-to-path/index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status