---
title: "invalidateGroupsWithKey"
description: "Invalidates composed groups with the given key. Calling this method switches recomposer into hot
reload mode. Test-only API, not for use in production."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@TestOnly
public fun invalidateGroupsWithKey(key: Int): Unit
```


Invalidates composed groups with the given key. Calling this method switches recomposer into hot
reload mode. Test-only API, not for use in production.

#### Parameters

| | |
| --- | --- |
| key | group key to invalidate. |




