Contentful Personalization & Analytics
    Preparing search index...

    Configuration options for createRetryFetchMethod.

    interface RetryFetchMethodOptions {
        apiName?: string;
        fetchMethod?: FetchMethod;
        intervalTimeout?: number;
        onFailedAttempt?: (options: FetchMethodCallbackOptions) => void;
        retries?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    apiName?: string

    Human-readable name of the API being called.

    Used primarily for logging and error messages.

    fetchMethod?: FetchMethod

    Custom fetch implementation to use instead of the global fetch.

    This is useful for providing polyfills, mocks, or instrumented fetch implementations.

    intervalTimeout?: number

    Delay (in milliseconds) between retry attempts.

    0

    onFailedAttempt?: (options: FetchMethodCallbackOptions) => void

    Callback invoked whenever a retry attempt fails.

    Type Declaration

    This callback is invoked with additional metadata such as the attempt number and the number of retries left.

    retries?: number

    Maximum number of retry attempts.

    1