@empathyco/x-components
Version:
Empathy X Components
67 lines (31 loc) • 1.07 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSaveRecommendations](./x-components.fetchandsaverecommendations.md)
## fetchAndSaveRecommendations() function
Default implementation for [RecommendationsActions.fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md) action.
**Signature:**
```typescript
fetchAndSaveRecommendations: (context: RecommendationsActionContext, request: RecommendationsRequest | null) => void | Promise<void>
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
context
</td><td>
[RecommendationsActionContext](./x-components.recommendationsactioncontext.md)
</td><td>
</td></tr>
<tr><td>
request
</td><td>
RecommendationsRequest \| null
</td><td>
</td></tr>
</tbody></table>
**Returns:**
void \| Promise<void>