DateFacetActions

This is for:

Developer

Loader Function

loadDateFacetActions

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

Parameters

  • engine: CommerceEngine

    The commerce engine.

Returns DateFacetActionCreators

DateFacetActionCreators

toggleExcludeDateFacetValue

Toggles the exclusion state of a given date facet value.

Parameters

  • payload: ToggleSelectDateFacetValueActionCreatorPayload

    The action creator payload.

Returns PayloadAction<ToggleExcludeDateFacetValuePayload>: A dispatchable action.

toggleSelectDateFacetValue

Toggles the selection state of a given date facet value.

Parameters

  • payload: ToggleSelectDateFacetValueActionCreatorPayload

    The action creator payload.

Returns PayloadAction<ToggleSelectDateFacetValuePayload>: A dispatchable action.

updateDateFacetValues

Updates all values in a given date facet.

Parameters

  • payload: UpdateDateFacetValuesActionCreatorPayload

    The action creator payload.

Returns PayloadAction<UpdateDateFacetValuesPayload>: A dispatchable action.