UNPKG

@empathyco/x-components

Version:
78 lines (35 loc) 1.23 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [QueriesPreviewActions](./x-components.queriespreviewactions.md) ## QueriesPreviewActions interface QueriesPreview store actions. **Signature:** ```typescript export interface QueriesPreviewActions ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [fetchAndSaveQueryPreview](./x-components.queriespreviewactions.fetchandsavequerypreview.md) </td><td> </td><td> (request: SearchRequest) =&gt; void </td><td> Requests the results for a cacheable query preview and saves them in the state. </td></tr> <tr><td> [fetchQueryPreview](./x-components.queriespreviewactions.fetchquerypreview.md) </td><td> </td><td> (request: SearchRequest) =&gt; SearchResponse \| null </td><td> Requests the results for a query preview, limited by [QueriesPreviewConfig.maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md)<!-- -->. </td></tr> </tbody></table>