SearchParametersActions
SearchParametersActions
This is for:
DeveloperIn this article
The search parameters action creators.
See Dispatch Actions.
Loader Function
loadSearchParametersActions
Loads the commerce facet order, facet set, pagination, query, query set, and sort reducers and returns the available search parameters action creators.
Parameters
-
engine:
CommerceEngine
The headless commerce engine.
Returns SearchParametersActionCreators
: The search parameters action creators.
SearchParametersActionCreators
restoreSearchParameters
Restores the search parameters.
Parameters
-
payload:
CommerceSearchParameters
The action creator payload.
Returns PayloadAction<RestoreSearchParametersPayload>
: A dispatchable action.