@empathyco/x-components
Version:
Empathy X Components
26 lines (15 loc) • 881 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSaveSearchResponse](./x-components.fetchandsavesearchresponse.md)
## fetchAndSaveSearchResponse() function
Default implementation for [SearchActions.fetchAndSaveSearchResponse](./x-components.searchactions.fetchandsavesearchresponse.md) action.
**Signature:**
```typescript
fetchAndSaveSearchResponse: (context: SearchActionContext, request: InternalSearchRequest | null) => void | Promise<void>
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| context | [SearchActionContext](./x-components.searchactioncontext.md) | |
| request | [InternalSearchRequest](./x-components.internalsearchrequest.md) \| null | |
**Returns:**
void \| Promise<void>