@empathyco/x-components
Version:
Empathy X Components
67 lines (31 loc) • 1.05 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSavePopularSearches](./x-components.fetchandsavepopularsearches.md)
## fetchAndSavePopularSearches() function
Default implementation for [PopularSearchesActions.fetchAndSaveSuggestions](./x-components.popularsearchesactions.fetchandsavesuggestions.md) action.
**Signature:**
```typescript
fetchAndSaveSuggestions: (context: PopularSearchesActionContext, request: PopularSearchesRequest) => void | Promise<void>
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
context
</td><td>
[PopularSearchesActionContext](./x-components.popularsearchesactioncontext.md)
</td><td>
</td></tr>
<tr><td>
request
</td><td>
PopularSearchesRequest
</td><td>
</td></tr>
</tbody></table>
**Returns:**
void \| Promise<void>