THIS IS ARCHIVED DOCUMENTATION
RecommendationActions (Deprecated)
RecommendationActions (Deprecated)
In this article
In this article
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
-
payload:
SetRecommendationIdActionCreatorPayload
The action creator payload.
Returns PayloadAction<SetRecommendationIdActionCreatorPayload>
: A dispatchable action.
Related Types
SetRecommendationIdActionCreatorPayload
Properties
-
id:
string
The recommendation identifier.
Associated Engines
The Recommendation
actions are available in the following engine: