superset-frontend/src/hooks/apiResources/apiResources.ts
Function useApiResourceFullBody
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useApiResourceFullBody<RESULT>(
endpoint: string,
): Resource<RESULT> {
const [resource, setResource] = useState<Resource<RESULT>>(initialState);
const cancelRef = useRef<() => void>(() => {});