@empathyco/x-components
Version:
Empathy X Components
24 lines (15 loc) • 1.45 kB
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)
## QuerySuggestionsActions interface
QuerySuggestions store actions.
**Signature:**
```typescript
export interface QuerySuggestionsActions
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [cancelFetchAndSaveSuggestions](./x-components.querysuggestionsactions.cancelfetchandsavesuggestions.md) | | () => void | Cancels / interrupt [QuerySuggestionsActions.fetchAndSaveSuggestions](./x-components.querysuggestionsactions.fetchandsavesuggestions.md) synchronous promise. |
| [fetchAndSaveSuggestions](./x-components.querysuggestionsactions.fetchandsavesuggestions.md) | | (request: QuerySuggestionsRequest \| null) => void | Requests and saves to the state a list of suggestions. |
| [fetchSuggestions](./x-components.querysuggestionsactions.fetchsuggestions.md) | | (request: QuerySuggestionsRequest \| null) => Suggestion\[\] | Requests and returns a list of suggestions based on the module state. |
| [setUrlParams](./x-components.querysuggestionsactions.seturlparams.md) | | (urlParams: [UrlParams](./x-components.urlparams.md)<!-- -->) => void | Checks if the url has a query on it and then updates the state with that value. |