UNPKG

@empathyco/x-components

Version:
67 lines (31 loc) 1.07 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [fetchAndSaveQuerySuggestions](./x-components.fetchandsavequerysuggestions.md) ## fetchAndSaveQuerySuggestions() function Default implementation for [QuerySuggestionsActions.fetchAndSaveSuggestions](./x-components.querysuggestionsactions.fetchandsavesuggestions.md) action. **Signature:** ```typescript fetchAndSaveSuggestions: (context: QuerySuggestionsActionContext, request: QuerySuggestionsRequest | 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> [QuerySuggestionsActionContext](./x-components.querysuggestionsactioncontext.md) </td><td> </td></tr> <tr><td> request </td><td> QuerySuggestionsRequest \| null </td><td> </td></tr> </tbody></table> **Returns:** void \| Promise&lt;void&gt;