interface AsyncComponentOptions<T> {
    delay?: number;
    errorComponent?: Component<any, any, any, ComputedOptions, MethodOptions, {}, any>;
    loader: AsyncComponentLoader<T>;
    loadingComponent?: Component<any, any, any, ComputedOptions, MethodOptions, {}, any>;
    onError?: ((error: Error, retry: (() => void), fail: (() => void), attempts: number) => any);
    suspensible?: boolean;
    timeout?: number;
}

Type Parameters

  • T = any

Properties

delay?: number
errorComponent?: Component<any, any, any, ComputedOptions, MethodOptions, {}, any>
loadingComponent?: Component<any, any, any, ComputedOptions, MethodOptions, {}, any>
onError?: ((error: Error, retry: (() => void), fail: (() => void), attempts: number) => any)
suspensible?: boolean
timeout?: number