packages/react-hooks/src/useApiUrl.ts
Function useApiUrlImpl
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function useApiUrlImpl (url?: null | string | string[]): ApiPromise | null {
const providerRef = useRef<ProviderInterface | null>(null);
const mountedRef = useIsMountedRef();
const [state, setState] = useState<ApiPromise | null>(null);
const urls = useMemo(