polkadot-js/apps

View on GitHub
packages/react-hooks/src/useParaApi.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useParaApiImpl has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function useParaApiImpl (paraId: BN | number): Result {
  const mountedRef = useIsMountedRef();
  const endpoints = useParaEndpoints(paraId);
  const [state, setState] = useState<Result>(() => ({
    api: null,
Severity: Minor
Found in packages/react-hooks/src/useParaApi.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status