diff --git a/src/lib/lazyWithRetry.ts b/src/lib/lazyWithRetry.ts index 1b627b683..721d89a31 100644 --- a/src/lib/lazyWithRetry.ts +++ b/src/lib/lazyWithRetry.ts @@ -7,7 +7,8 @@ import { getFallback } from '@/components/layout/SkeletonLoaders'; * Wrapper around React.lazy that retries on chunk loading failures. * Handles stale cache issues after deployments and Vite 502 spikes. */ -export function lazyWithRetry>( +// eslint-disable-next-line @typescript-eslint/no-explicit-any -- ForwardRef/Memo components nao satisfazem ComponentType; any e necessario p/ inferir T nos call-sites +export function lazyWithRetry>( componentImport: () => Promise<{ default: T }>, retries = 3, interval = 1000,