@empathyco/x-components
Version:
Empathy X Components
26 lines (15 loc) • 864 B
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
| Parameter | Type | Description |
| --- | --- | --- |
| context | [PopularSearchesActionContext](./x-components.popularsearchesactioncontext.md) | |
| request | PopularSearchesRequest | |
**Returns:**
void \| Promise<void>