Skip to content

Commit 138f71d

Browse files
committed
fix: SplashViewModel navigateEvent replay=1로 변경 (lifecycle 전환 시 이벤트 유실 방지)
1 parent 96fc9cf commit 138f71d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/runnect/runnect/presentation/splash/SplashViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class SplashViewModel @Inject constructor() : ViewModel() {
1919
private val _isReady = MutableStateFlow(false)
2020
val isReady: StateFlow<Boolean> = _isReady.asStateFlow()
2121

22-
private val _navigateEvent = MutableSharedFlow<Unit>(extraBufferCapacity = 1)
22+
private val _navigateEvent = MutableSharedFlow<Unit>(replay = 1)
2323
val navigateEvent: SharedFlow<Unit> = _navigateEvent.asSharedFlow()
2424

2525
init {

0 commit comments

Comments
 (0)