NumericFacetActions

This is for:

Developer

The numeric facet action creators.

Loader Function

loadNumericFacetActions

Loads the commerce facet set reducer and returns the available numeric facet action creators.

Parameters

  • engine: CommerceEngine

    The commerce engine.

Returns NumericFacetActionCreators: The numeric facet action creators.

NumericFacetActionCreators

toggleExcludeNumericFacetValue

Toggles the exclusion state of a given numeric facet value.

Parameters

  • payload: ToggleSelectNumericFacetValueActionCreatorPayload

    The action creator payload.

Returns PayloadAction<ToggleExcludeNumericFacetValuePayload>: A dispatchable action.

toggleSelectNumericFacetValue

Toggles the selection state of a given numeric facet value.

Parameters

  • payload: ToggleSelectNumericFacetValueActionCreatorPayload

    The action creator payload.

Returns PayloadAction<ToggleSelectNumericFacetValuePayload>: A dispatchable action.

updateNumericFacetValues

Updates all values in a given numeric facet.

Parameters

  • payload: UpdateNumericFacetValuesActionCreatorPayload

    The action creator payload.

Returns PayloadAction<UpdateNumericFacetValuesPayload>: A dispatchable action.