ProductListingActions
ProductListingActions
This is for:
DeveloperIn this article
The product listings action creators.
See Dispatch Actions.
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
-
payload:
SetProductListingUrlPayload
The action creator payload.
Returns PayloadAction<SetProductListingUrlPayload>
: A dispatchable action.
Related Types
SetProductListingUrlPayload
Properties
-
url:
string
The url used to determine which product listing to fetch.