LocationFacetActions
LocationFacetActions
This is for:
DeveloperIn this article
The location facet action creators.
See Dispatch Actions.
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
-
payload:
ToggleSelectLocationFacetValuePayload
The action creator payload.
Returns PayloadAction<ToggleSelectLocationFacetValuePayload>
: A dispatchable action.
Related Types
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.