airbnb/caravel

View on GitHub
superset-frontend/src/hooks/apiResources/apiResources.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useApiResourceFullBody has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function useApiResourceFullBody<RESULT>(
  endpoint: string,
): Resource<RESULT> {
  const [resource, setResource] = useState<Resource<RESULT>>(initialState);
  const cancelRef = useRef<() => void>(() => {});
Severity: Minor
Found in superset-frontend/src/hooks/apiResources/apiResources.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status