LocationFacetActions

This is for:

Developer
Note

This component was introduced in version 3.5.0.

The location facet action creators.

Loader Function

loadLocationFacetActions

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

Parameters

  • engine: CommerceEngine

    The commerce engine.

Returns LocationFacetActionCreators: The location facet action creators.

LocationFacetActionCreators

toggleSelectLocationFacetValue

Toggles the selection of a given location facet value.

Parameters

Returns PayloadAction<ToggleSelectLocationFacetValuePayload>: A dispatchable action.

LocationFacetValue

Properties

  • value: string

  • state: FacetValueState

ToggleSelectLocationFacetValuePayload

Properties

  • facetId: string

    The unique identifier of the facet (e.g., "1").

  • selection: LocationFacetValue

    The target location facet value.