Skip to content

Commit

Permalink
Fix : 로그인 후 홈 화면 이동 시 로그인 화면을 스택에서 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
DongChyeon committed Jun 28, 2024
1 parent 4579d78 commit 2141ccd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/src/main/java/com/dev/briefing/BriefingNavHost.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import store.newsbriefing.app.feature.auth.signInRoute
import store.newsbriefing.app.feature.auth.signInScreen
import store.newsbriefing.app.feature.bookmark.bookmarkScreen
import store.newsbriefing.app.feature.bookmark.navigateToBookmark
import store.newsbriefing.app.feature.home.homeRoute
import store.newsbriefing.app.feature.home.homeScreen
import store.newsbriefing.app.feature.home.navigateToHome
import store.newsbriefing.app.feature.newsdetail.navigateToNewsDetail
import store.newsbriefing.app.feature.newsdetail.newsDetailScreen
import store.newsbriefing.app.feature.setting.navigateToSetting
Expand Down Expand Up @@ -48,7 +48,14 @@ fun BriefingNavHost(
)
signInScreen(
showSnackBar = appState::showSnackBar,
navigateToHome = appState.navController::navigateToHome
navigateToHome = {
appState.navController.navigate(
route = homeRoute,
builder = {
popUpTo(signInRoute) { inclusive = true }
}
)
}
)
}
}

0 comments on commit 2141ccd

Please sign in to comment.