RecommendationActions

This is for:

Developer

The recommendation action creators.

Loader Function

loadRecommendationActions

Loads the recommendation reducer and returns possible action creators.

Parameters

  • engine: RecommendationEngine

    The headless engine.

Returns RecommendationActionCreators: The recommendation action creators.

RecommendationActionCreators

getRecommendations

Refreshes the recommendations.

Returns AsyncThunkAction<GetRecommendationsThunkReturn, void, AsyncThunkSearchOptions<StateNeededByGetRecommendations>>: A dispatchable action.

setRecommendationId

Updates the recommendation identifier.

Parameters

Returns PayloadAction<SetRecommendationIdActionCreatorPayload>: A dispatchable action.

SetRecommendationIdActionCreatorPayload

Properties

  • id: string

    The recommendation identifier.