Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
⚡️ :: SnapShotStateList 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chlgkdms committed Nov 29, 2023
1 parent 08068c1 commit 30602f6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.signal.signal_android.feature.coin

import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.snapshots.SnapshotStateList
import androidx.lifecycle.viewModelScope
import com.signal.domain.entity.CoinsEntity
import com.signal.domain.entity.CreateCoinEntity
Expand All @@ -13,7 +15,7 @@ class CoinViewModel(
private val coinRepository: CoinRepository,
) : BaseViewModel<CoinState, CoinSideEffect>(CoinState.getDefaultState()) {

private val _coins: MutableList<CoinsEntity.CoinEntity> = mutableListOf()
private val _coins: SnapshotStateList<CoinsEntity.CoinEntity> = mutableStateListOf()

internal fun createCoin(
coin: Long,
Expand Down

0 comments on commit 30602f6

Please sign in to comment.