---
title: "SubcomposeSlotReusePolicy"
description: "Creates [SubcomposeSlotReusePolicy] which retains the fixed amount of slots."
type: "function"
---

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


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


```kotlin
fun SubcomposeSlotReusePolicy(maxSlotsToRetainForReuse: Int): SubcomposeSlotReusePolicy
```


Creates `SubcomposeSlotReusePolicy` which retains the fixed amount of slots.

#### Parameters

| | |
| --- | --- |
| maxSlotsToRetainForReuse | the `SubcomposeLayout` will retain up to this amount of slots. |




