@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 804 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [SemanticQueriesActions](./x-components.semanticqueriesactions.md) > [fetchAndSaveSemanticQuery](./x-components.semanticqueriesactions.fetchandsavesemanticquery.md)
## SemanticQueriesActions.fetchAndSaveSemanticQuery() method
Requests the semantic queries similar to the requested query and saves them in the state.
**Signature:**
```typescript
fetchAndSaveSemanticQuery(request: SemanticQueriesRequest | null): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| request | SemanticQueriesRequest \| null | The request object to retrieve the semantic queries. |
**Returns:**
void