---
title: "simulateHotReload"
description: "Simulates hot reload of all current compositions by disposing all composed content and restarting
compositions. 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 simulateHotReload(context: Any): Unit
```


Simulates hot reload of all current compositions by disposing all composed content and restarting
compositions. Calling this method switches recomposer into hot reload mode. Test-only API, not
for use in production.

#### Parameters

| | |
| --- | --- |
| context | context for disposal. |




