Skip to content

Commit

Permalink
fix: Koin Single Component 인 DexRepository warm up
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Oct 22, 2024
1 parent 17f93ec commit d65d279
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.onStart
import kotlinx.coroutines.launch
import kotlinx.coroutines.plus
import org.koin.mp.KoinPlatform.getKoin
import poke.rogue.helper.analytics.AnalyticsLogger
import poke.rogue.helper.data.repository.DexRepository
import poke.rogue.helper.presentation.base.BaseViewModelFactory
Expand All @@ -31,6 +32,8 @@ class PokemonIntroViewModel(
coroutineScope {
launch { delay(MIN_SPLASH_TIME) }
launch { pokemonRepository.warmUp() }
// TODO Koin 일괄적으로 적용 시 삭제 예정
launch { getKoin().get<DexRepository>().warmUp() }
}
} catch (e: Exception) {
Timber.e(e)
Expand Down

0 comments on commit d65d279

Please sign in to comment.