@coveo/headless
    Preparing search index...

    Interface ProductListingActionCreators

    The product listing action creators.

    See Dispatch actions.

    interface ProductListingActionCreators {
        fetchMoreProducts(): AsyncThunkAction<
            null
            | QueryCommerceAPIThunkReturn,
            void,
            AsyncThunkCommerceOptions<StateNeededByFetchProductListing>,
        >;
        fetchProductListing(): AsyncThunkAction<
            QueryCommerceAPIThunkReturn,
            void,
            AsyncThunkCommerceOptions<StateNeededByFetchProductListing>,
        >;
        promoteChildToParent(
            payload: PromoteChildToParentPayload,
        ): { payload: PromoteChildToParentPayload; type: string };
    }
    Index

    Methods

    • Fetches and additional page of products and appends it to the current list.

      Returns AsyncThunkAction<
          null
          | QueryCommerceAPIThunkReturn,
          void,
          AsyncThunkCommerceOptions<StateNeededByFetchProductListing>,
      >

      A dispatchable action.