From 880bce2b560e1062b4cf609f3911e9777ff0e2b0 Mon Sep 17 00:00:00 2001 From: murjune Date: Sat, 10 Feb 2024 05:17:28 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20@ExperimentalCoroutinesApi=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feature/match/src/main/java/com/moya/funch/MatchViewModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/feature/match/src/main/java/com/moya/funch/MatchViewModel.kt b/feature/match/src/main/java/com/moya/funch/MatchViewModel.kt index b5a3a872..daebff25 100644 --- a/feature/match/src/main/java/com/moya/funch/MatchViewModel.kt +++ b/feature/match/src/main/java/com/moya/funch/MatchViewModel.kt @@ -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 @@ -30,6 +31,7 @@ class MatchViewModel @Inject constructor( val matchCode: StateFlow = savedStateHandle.getStateFlow(MATCH_CODE, "") + @OptIn(ExperimentalCoroutinesApi::class) val uiState: StateFlow = matchCode.mapLatest { code -> if (code.isEmpty()) { MatchUiState.Loading