<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [FacetsMutations](./x-components.facetsmutations.md) &gt; [setStickyFilter](./x-components.facetsmutations.setstickyfilter.md)

## FacetsMutations.setStickyFilter() method

Adds the filter to the [sticky filters](./x-components.facetsstate.stickyfilters.md) record.

**Signature:**

```typescript
setStickyFilter(filter: RawFilter): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  filter | RawFilter | The filter to set in the store. |

**Returns:**

void

