Skip to content

Commit

Permalink
Merge pull request #524 from andhiratobing/main
Browse files Browse the repository at this point in the history
Set item keys for smart recomposition of topics
  • Loading branch information
mmoczkowski authored Jan 25, 2023
2 parents cfbf782 + 8eac9a4 commit 893ac39
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,10 @@ private fun TopicSelection(
.fillMaxWidth()
.testTag(topicSelectionTestTag)
) {
items(onboardingUiState.topics) {
items(
items = onboardingUiState.topics,
key = { it.topic.id }
) {
SingleTopicButton(
name = it.topic.name,
topicId = it.topic.id,
Expand Down

0 comments on commit 893ac39

Please sign in to comment.