Static

@Composable
fun Static(content: @Composable () -> Unit)

Render content once as permanent output above the regular display.

The content function will be recomposed once and then never again. Any contained SideEffects or DisposableEffects will run (and be disposed), but LaunchedEffects will not launch.


@Composable
fun <T> Static(items: SnapshotStateList<T>, content: @Composable (item: T) -> Unit)

Deprecated

Loop over items list yourself and call Static on each item

Replace with

items.forEach { Static { content(it) } }

Render each value emitted by items as permanent output above the regular display.