# ReusableContent

Common/AllAndroid/JVMNative/C/iOSJavaScript

## Functions summary

|---|---|---|
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/runtime/ReusableContent.composable#ReusableContent(kotlin.Any,kotlin.Function0)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` A utility function to mark a composition as supporting recycling. | Cmn |

## Functions

### ReusableContent

Cmn Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/Composables.kt+function:ReusableContent) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.0.0)

```
@Composable
inline fun ReusableContent(key: Any?, content: @Composable () -> Unit): Unit
```

A utility function to mark a composition as supporting recycling. If the `https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#ReusableContent(kotlin.Any,kotlin.Function0)` changes the composition is replaced by a new composition (as would happen for `https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#ReusableContent(kotlin.Any,kotlin.Function0)`) but reusable nodes that are emitted by `https://developer.android.com/reference/kotlin/androidx/compose/runtime/ReusableComposeNode.composable#ReusableComposeNode(kotlin.Function0,kotlin.Function1)` are reused.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | the value that is used to trigger recycling. If recomposed with a different value the composer creates a new composition but tries to reuse reusable nodes. |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | the composable children that are recyclable. |