@empathyco/x-components
Version:
Empathy X Components
97 lines (43 loc) • 1.53 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
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[cancelFetchAndSaveRecommendations](./x-components.recommendationsactions.cancelfetchandsaverecommendations.md)
</td><td>
</td><td>
() => void
</td><td>
Cancels / interrupt [RecommendationsActions.fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md) synchronous promise.
</td></tr>
<tr><td>
[fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md)
</td><td>
</td><td>
(request: RecommendationsRequest \| null) => void
</td><td>
Requests and saves to the state a list of recommendations.
</td></tr>
<tr><td>
[fetchRecommendations](./x-components.recommendationsactions.fetchrecommendations.md)
</td><td>
</td><td>
(request: RecommendationsRequest \| null) => Result\[\]
</td><td>
Requests and returns a list of recommendations based on the module state.
</td></tr>
</tbody></table>