Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Created October 2, 2022 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Skyyo/fbb139300719aebed75450cab9449a8c to your computer and use it in GitHub Desktop.
Save Skyyo/fbb139300719aebed75450cab9449a8c to your computer and use it in GitHub Desktop.
perf_snippet_9
@Composable
fun UnstableListScreen() {
val items = remember { (0..100).map { it } }
Box {
WrappedLazyColumn(items)
}
}
@Composable
private fun WrappedLazyColumn(items: List<Int>) {
LazyColumn {
items(items = items, key = { item -> item }) { item ->
Text(text = "item $item")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment