@empathyco/x-components
Version:
Empathy X Components
23 lines (14 loc) • 1.24 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [RecommendationsActions](./x-components.recommendationsactions.md)
## RecommendationsActions interface
Recommendations store actions.
**Signature:**
```typescript
export interface RecommendationsActions
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [cancelFetchAndSaveRecommendations](./x-components.recommendationsactions.cancelfetchandsaverecommendations.md) | | () => void | Cancels / interrupt [RecommendationsActions.fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md) synchronous promise. |
| [fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md) | | (request: RecommendationsRequest \| null) => void | Requests and saves to the state a list of recommendations. |
| [fetchRecommendations](./x-components.recommendationsactions.fetchrecommendations.md) | | (request: RecommendationsRequest \| null) => Result\[\] | Requests and returns a list of recommendations based on the module state. |