<div class='sourceset sourceset-android'>Android</div>

```kotlin
object DisposeOnDetachedFromWindowOrReleasedFromPool : ViewCompositionStrategy
```

The composition will be disposed automatically when the view is detached from a window,
unless it is part of a [pooling container]`isPoolingContainer`, such as `RecyclerView`.

When not within a pooling container, this behaves exactly the same as
[DisposeOnDetachedFromWindow](/jetpack-compose/androidx.compose.ui/ui/objects/ViewCompositionStrategy.DisposeOnDetachedFromWindow).