Skip to content

Commit

Permalink
[chore] @ExperimentalCoroutinesApi 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Feb 9, 2024
1 parent 7164bb8 commit 880bce2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions feature/match/src/main/java/com/moya/funch/MatchViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import com.moya.funch.entity.match.Matching
import com.moya.funch.entity.match.Recommend
import com.moya.funch.entity.profile.Profile
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.ExperimentalCoroutinesApi
import javax.inject.Inject
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.SharingStarted
Expand All @@ -30,6 +31,7 @@ class MatchViewModel @Inject constructor(

val matchCode: StateFlow<String> = savedStateHandle.getStateFlow(MATCH_CODE, "")

@OptIn(ExperimentalCoroutinesApi::class)
val uiState: StateFlow<MatchUiState> = matchCode.mapLatest { code ->
if (code.isEmpty()) {
MatchUiState.Loading
Expand Down

0 comments on commit 880bce2

Please sign in to comment.