<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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&lt;void&gt;

