packages/react-hooks/src/useParaApi.ts
Function useParaApiImpl
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function useParaApiImpl (paraId: BN | number): Result {
const mountedRef = useIsMountedRef();
const endpoints = useParaEndpoints(paraId);
const [state, setState] = useState<Result>(() => ({
api: null,