RecommendationActions
RecommendationActions
This is for:
DeveloperIn this article
The recommendation action creators.
See Dispatch Actions.
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.