Make ReorderingState @Stable

This commit is contained in:
vfsfitvnm
2022-08-26 10:10:44 +02:00
parent 17a5e603b3
commit e7d768e6bd

View File

@@ -10,6 +10,7 @@ import androidx.compose.foundation.lazy.LazyListBeyondBoundsInfo
import androidx.compose.foundation.lazy.LazyListItemInfo import androidx.compose.foundation.lazy.LazyListItemInfo
import androidx.compose.foundation.lazy.LazyListState import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateMapOf import androidx.compose.runtime.mutableStateMapOf
import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.mutableStateOf
@@ -24,6 +25,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
@Stable
class ReorderingState( class ReorderingState(
val lazyListState: LazyListState, val lazyListState: LazyListState,
internal val coroutineScope: CoroutineScope, internal val coroutineScope: CoroutineScope,