A scoped and simplified part of the headless state that is relevant to the ProductListing controller.

interface ProductListState {
    error: null | CommerceAPIErrorStatusResponse;
    isLoading: boolean;
    products: Product[];
    responseId: string;
}

Properties

error: null | CommerceAPIErrorStatusResponse
isLoading: boolean
products: Product[]
responseId: string