UNPKG

@empathyco/x-components

Version:
24 lines (15 loc) 1.22 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [QuerySuggestionsActions](./x-components.querysuggestionsactions.md) ## QuerySuggestionsActions interface QuerySuggestions store actions. **Signature:** ```typescript export interface QuerySuggestionsActions ``` ## Methods | Method | Description | | --- | --- | | [cancelFetchAndSaveSuggestions()](./x-components.querysuggestionsactions.cancelfetchandsavesuggestions.md) | Cancels / interrupt [QuerySuggestionsActions.fetchAndSaveSuggestions()](./x-components.querysuggestionsactions.fetchandsavesuggestions.md) synchronous promise. | | [fetchAndSaveSuggestions(request)](./x-components.querysuggestionsactions.fetchandsavesuggestions.md) | Requests and saves to the state a list of suggestions. | | [fetchSuggestions(request)](./x-components.querysuggestionsactions.fetchsuggestions.md) | Requests and returns a list of suggestions based on the module state. | | [setUrlParams(urlParams)](./x-components.querysuggestionsactions.seturlparams.md) | Checks if the url has a query on it and then updates the state with that value. |