QuerySuggestActions (Commerce Engine)

This is for:

Developer

The query suggest action creators for commerce.

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

Returns AsyncThunkAction<FetchQuerySuggestionsThunkReturn, FetchQuerySuggestionsActionCreatorPayload, AsyncThunkCommerceOptions<StateNeededByQuerySuggest>>: A dispatchable action.

FetchQuerySuggestionsActionCreatorPayload

Properties

  • id: string

    The unique identifier of the target query suggest entity (e.g., b953ab2e-022b-4de4-903f-68b2c0682942).