ProductListingActions (Commerce Engine)
ProductListingActions (Commerce Engine)
This is for:
DeveloperThe product listing action creators.
See Dispatch Actions.
Loader Function
loadProductListingActions
Loads the commerce product listing reducer and returns the available product listing action creators. In Open Beta. Reach out to your Coveo team for support in adopting this.
Parameters
-
engine:
CommerceEngine
The headless commerce engine.
Returns ProductListingActionCreators
: The product listing action creators.
ProductListingActionCreators
fetchMoreProducts
Fetches and additional page of products and appends it to the current list.
Returns AsyncThunkAction<QueryCommerceAPIThunkReturn | null, void, AsyncThunkCommerceOptions<StateNeededByFetchProductListing>>
: A dispatchable action.
fetchProductListing
Refreshes the product listing.
Returns AsyncThunkAction<QueryCommerceAPIThunkReturn, void, AsyncThunkCommerceOptions<StateNeededByFetchProductListing>>
: A dispatchable action.