@empathyco/x-components
Version:
Empathy X Components
67 lines (31 loc) • 1.06 kB
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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
context
</td><td>
[SearchActionContext](./x-components.searchactioncontext.md)
</td><td>
</td></tr>
<tr><td>
request
</td><td>
[InternalSearchRequest](./x-components.internalsearchrequest.md) \| null
</td><td>
</td></tr>
</tbody></table>
**Returns:**
void \| Promise<void>