@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 750 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QuerySuggestionsActions](./x-components.querysuggestionsactions.md) > [fetchSuggestions](./x-components.querysuggestionsactions.fetchsuggestions.md)
## QuerySuggestionsActions.fetchSuggestions() method
Requests and returns a list of suggestions based on the module state.
**Signature:**
```typescript
fetchSuggestions(request: QuerySuggestionsRequest | null): Suggestion[];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| request | QuerySuggestionsRequest \| null | |
**Returns:**
Suggestion\[\]
A new list of suggestions.