From e7d768e6bd4330674214ad9eebd856166074cdd4 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Fri, 26 Aug 2022 10:10:44 +0200 Subject: [PATCH] Make ReorderingState @Stable --- .../src/main/kotlin/it/vfsfitvnm/reordering/ReorderingState.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose-reordering/src/main/kotlin/it/vfsfitvnm/reordering/ReorderingState.kt b/compose-reordering/src/main/kotlin/it/vfsfitvnm/reordering/ReorderingState.kt index 38ff272..23c4a6b 100644 --- a/compose-reordering/src/main/kotlin/it/vfsfitvnm/reordering/ReorderingState.kt +++ b/compose-reordering/src/main/kotlin/it/vfsfitvnm/reordering/ReorderingState.kt @@ -10,6 +10,7 @@ import androidx.compose.foundation.lazy.LazyListBeyondBoundsInfo import androidx.compose.foundation.lazy.LazyListItemInfo import androidx.compose.foundation.lazy.LazyListState import androidx.compose.runtime.Composable +import androidx.compose.runtime.Stable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateMapOf import androidx.compose.runtime.mutableStateOf @@ -24,6 +25,7 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.withContext +@Stable class ReorderingState( val lazyListState: LazyListState, internal val coroutineScope: CoroutineScope,