CategoryFacetSetActions (Commerce Engine)

This is for:

Developer

The category facet action creators.

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.