<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SearchActions](./x-components.searchactions.md)

## SearchActions interface

Search store actions.

**Signature:**

```typescript
export interface SearchActions 
```

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [cancelFetchAndSaveSearchResponse](./x-components.searchactions.cancelfetchandsavesearchresponse.md) |  | () =&gt; void | Cancels / interrupt [SearchActions.fetchAndSaveSearchResponse](./x-components.searchactions.fetchandsavesearchresponse.md) synchronous promise. |
|  [fetchAndSaveSearchResponse](./x-components.searchactions.fetchandsavesearchresponse.md) |  | (request: [InternalSearchRequest](./x-components.internalsearchrequest.md) \| null) =&gt; void | Fetches a new search response and stores them in the module state. |
|  [fetchSearchResponse](./x-components.searchactions.fetchsearchresponse.md) |  | (request: SearchRequest) =&gt; SearchResponse | Fetches the search response and returns them. |
|  [increasePageAppendingResults](./x-components.searchactions.increasepageappendingresults.md) |  | () =&gt; void | Checks if there are more pages of results to load. If there are, then increases the page number in state and set to <code>true</code> the [SearchState.isAppendResults](./x-components.searchstate.isappendresults.md) flag. |
|  [resetRequestOnRefinement](./x-components.searchactions.resetrequestonrefinement.md) |  | (watchedRequest: [WatchedInternalSearchRequest](./x-components.watchedinternalsearchrequest.md)<!-- -->) =&gt; void | Batches state resets in a single action after [SearchGetters.request](./x-components.searchgetters.request.md) parameters update. |
|  [saveOrigin](./x-components.searchactions.saveorigin.md) |  | (originInit: [QueryOriginInit](./x-components.queryorigininit.md)<!-- -->) =&gt; void | Creates a [QueryOrigin](./x-components.queryorigin.md) and saves it. |
|  [saveSearchResponse](./x-components.searchactions.savesearchresponse.md) |  | (response: SearchResponse) =&gt; void | Saves the [SearchResponse](./x-types.searchresponse.md)<!-- -->. |
|  [setUrlParams](./x-components.searchactions.seturlparams.md) |  | (urlParams: [UrlParams](./x-components.urlparams.md)<!-- -->) =&gt; void | Checks if the url has params on it and then updates the state with these values. |

