QuerySuggestActions (Commerce Engine)
QuerySuggestActions (Commerce Engine)
This is for:
DeveloperThe query suggest action creators for commerce.
See Dispatch Actions.
Loader Function
loadQuerySuggestActions
Loads the query suggest reducer and returns the available query suggest action creators.
Parameters
-
engine:
CommerceEngine
The headless engine.
Returns CommerceQuerySuggestActionCreators
: The query suggest action creators for commerce.
CommerceQuerySuggestActionCreators
fetchQuerySuggestions
Fetches a list of query suggestions for a specific query suggest entity according to the current headless state.
Parameters
-
payload:
FetchQuerySuggestionsActionCreatorPayload
The action creator payload.
Returns AsyncThunkAction<FetchQuerySuggestionsThunkReturn, FetchQuerySuggestionsActionCreatorPayload, AsyncThunkCommerceOptions<StateNeededByQuerySuggest>>
: A dispatchable action.
Related Types
FetchQuerySuggestionsActionCreatorPayload
Properties
-
id:
string
The unique identifier of the target query suggest entity (e.g.,
b953ab2e-022b-4de4-903f-68b2c0682942
).