Hello team I have a list of data displayed in a La...
# compose
k
Hello team I have a list of data displayed in a LazyColumn in Jetpack Compose. The data model exists in the UI layer, and I need to handle item selection state. I’m considering two approaches: Add an isSelected field inside the UI model and update the item when selection changes. Keep the model unchanged and maintain a separate collection (for example, a list or set of selected item IDs). With the first approach, updating selection means creating a copied version of the item and updating the state. I’m wondering if repeatedly copying items and updating the list could affect performance, especially with larger lists