<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SearchMutations](./x-components.searchmutations.md) &gt; [setStats](./x-components.searchmutations.setstats.md)

## SearchMutations.setStats() method

Sets the stats of the module.

**Signature:**

```typescript
setStats(stats: Stats): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  stats | Stats | The new stats to save to the state. |

**Returns:**

void

