@coveo/headless-react
    Preparing search index...

    Interface ProductEnrichmentState

    interface ProductEnrichmentState {
        error: CommerceAPIErrorResponse | SerializedError | null;
        isLoading: boolean;
        placementIds: string[];
        productId?: string;
        products: BadgesProduct[];
    }
    Index

    Properties

    error: CommerceAPIErrorResponse | SerializedError | null

    The error returned when executing a badge fetch request, if any. This is null otherwise.

    isLoading: boolean

    Whether a request to fetch badges is currently being executed.

    placementIds: string[]

    The placement IDs used for fetching badges.

    productId?: string

    The product ID used for fetching badges.

    products: BadgesProduct[]

    An array of products with their badge placements.