Fixes Stability of the Update Reaction view model

This commit is contained in:
Vitor Pamplona
2026-03-01 19:15:36 -05:00
parent 7889e3a624
commit 69e061e4c4
@@ -54,6 +54,7 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.MutableState import androidx.compose.runtime.MutableState
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember import androidx.compose.runtime.remember
@@ -99,6 +100,7 @@ import kotlinx.collections.immutable.persistentListOf
import kotlinx.collections.immutable.toImmutableList import kotlinx.collections.immutable.toImmutableList
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
@Stable
class UpdateReactionTypeViewModel : ViewModel() { class UpdateReactionTypeViewModel : ViewModel() {
lateinit var accountViewModel: AccountViewModel lateinit var accountViewModel: AccountViewModel
lateinit var account: Account lateinit var account: Account