Vizzuality/landgriffon

View on GitHub
client/src/hooks/h3-data/contextual.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function useAllContextualLayersData has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useAllContextualLayersData = <T = { layerId: Layer['id'] } & H3APIResponse>(
  options?: Omit<
    UseQueryOptions<
      { layerId: Layer['id'] } & H3APIResponse,
      ErrorResponse,
Severity: Minor
Found in client/src/hooks/h3-data/contextual.ts - About 1 hr to fix

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

    const useH3ContextualData = <T = H3APIResponse>(
      id: Layer['id'],
      options?: UseQueryOptions<
        H3APIResponse,
        ErrorResponse,
    Severity: Minor
    Found in client/src/hooks/h3-data/contextual.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status