infinity-fetch - v1.5.0
    Preparing search index...

    Type Alias FetchContext

    Context passed as the second argument to every fetcher call

    type FetchContext = {
        pageIndex: number;
        attempt: number;
        signal?: AbortSignal;
    }
    Index
    pageIndex: number

    Zero-based index of the page being fetched

    attempt: number

    Retry number for this page: 0 on the first try, 1 on the first retry, and so on

    signal?: AbortSignal

    The signal from the config, forwarded so the fetcher can abort the in-flight request