nuhkoca
If you are using LazyColumn/Row please make sure you provide a unique key for each item.
LazyList
ste
val instruments by viewModel.output.instruments.subscribeAsState(initial = emptyList())
LazyColumn( state = rememberLazyListState(), modifier = Modifier.fillMaxSize() ) { ... items( items = instruments, key = { it.isin }, contentType = { when { it.derivativeTags?.optionTypeText != null -> CONTENT_TYPE_DERIVATIVES it.hasSavingsPlan -> CONTENT_TYPE_SAVINGS_PLAN sorting.criteria == Criteria.PositionSize -> CONTENT_TYPE_POSITION_SIZE else -> CONTENT_TYPE_METRIC } } ) { item -> ... } }
item
isin
US14583249X
Chris Fillmore
instruments.forEach { instrument -> require(instruments.none { it.isin == instrument.isin }) }
XF000XRP0018
US88160R1014
US8676524064
US70450Y1038
US5949181045
XF000LTC0015
FR0000121014
JP3616200006
US30303M1027
XF000ETH0019
IE00BKM4GZ66
XF000LINK010
XF000BTC0017
XF000AVAX016
US0378331005
DE000TR04TT1
US02079K3059
A modern programming language that makes developers happier.