ProductListingActions

This is for:

Developer

The product listings action creators.

Loader Function

loadProductListingActions

Loads the productListing reducer and returns possible action creators.

Parameters

  • engine: ProductListingEngine

    The headless engine.

Returns ProductListingActionCreators: The product listings action creators.

ProductListingActionCreators

fetchProductListing

Refreshes the product listing.

Returns AsyncThunkAction<FetchProductListingThunkReturn, void, AsyncThunkProductListingOptions<StateNeededByFetchProductListing>>: A dispatchable action.

setProductListingUrl

Updates the product listing url field.

Parameters

Returns PayloadAction<SetProductListingUrlPayload>: A dispatchable action.

SetProductListingUrlPayload

Properties

  • url: string

    The url used to determine which product listing to fetch.