mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-21 09:40:37 +02:00
Update History List on change
This commit is contained in:
parent
6c5994ca2d
commit
4718d4ac18
@ -123,8 +123,8 @@ private fun HistoryListContent(
|
|||||||
formatterSymbols: FormatterSymbols,
|
formatterSymbols: FormatterSymbols,
|
||||||
historyItemHeightCallback: (Int) -> Unit
|
historyItemHeightCallback: (Int) -> Unit
|
||||||
) {
|
) {
|
||||||
val firstItem by remember { mutableStateOf(historyItems.first()) }
|
val firstItem by remember(historyItems) { mutableStateOf(historyItems.first()) }
|
||||||
val restOfTheItems by remember { mutableStateOf(historyItems.drop(1)) }
|
val restOfTheItems by remember(firstItem) { mutableStateOf(historyItems.drop(1)) }
|
||||||
|
|
||||||
LazyColumn(
|
LazyColumn(
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user