CategoryFacetSetActions (Commerce Engine)
CategoryFacetSetActions (Commerce Engine)
This is for:
DeveloperThe category facet action creators.
See Dispatch Actions.
Loader Function
loadCategoryFacetSetActions
Loads the commerce facet set reducer and returns the available category facet action creators.
Parameters
-
engine:
CommerceEngine
The commerce engine.
Returns CategoryFacetSetActionCreators
: The category facet action creators.
CategoryFacetSetActionCreators
toggleSelectCategoryFacetValue
Toggles the selection of a given category facet value.
Parameters
-
payload:
ToggleSelectCategoryFacetValueActionCreatorPayload
The action creator payload.
Returns PayloadAction<ToggleSelectCategoryFacetValuePayload>
: A dispatchable action.
updateCategoryFacetNumberOfValues
Updates the number of values to request for a given category facet.
Parameters
-
payload:
UpdateCategoryFacetNumberOfValuesActionCreatorPayload
The action creator payload.
Returns PayloadAction<UpdateCategoryFacetNumberOfValuesPayload>
: A dispatchable action.