> For the complete documentation index, see [llms.txt](https://overmindjs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overmindjs.org/api-1/addflushlistener.md).

# addFlushListener

The **addMutationListener** triggers whenever there is a mutation. The **addFlushListener** triggers whenever Overmind tells components to render again. It can have multiple mutations related to it.

{% tabs %}
{% tab title="overmind/actions.js" %}

```typescript
export const onInitializeOvermind = async ({ state, effects }, overmind) => {
  overmind.addFlushListener(effects.history.addMutations)
}
```

{% endtab %}
{% endtabs %}
