-
Notifications
You must be signed in to change notification settings - Fork 102
(FEAT)[#422] Router - 추가 적용 #520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…iewModelTest navigator 생성자 추가
…함수 수정 및 사용하지 않는 MainNavigator 코드 제거
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 644dda6. ♻️ This comment has been updated with latest results. |
|
바텀 탭 루트 객체도 각각 feature-api 모듈로 분리 해야할까요?
|
|
@s9hn ./gradlew/detekt 로컬에서 체크 부탁드립니다. |
| restoreState = true | ||
| } | ||
| restoreState = sideEffect.saveState | ||
| launchSingleTop = sideEffect.launchSingleTop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| navController: NavHostController = rememberNavController(), | ||
| ): MainNavigator = remember(navController) { | ||
| MainNavigator(navController) | ||
| MainNavigator(navController, onTabClick) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 라우터 작업은 이 부분을 제거하기 위함이긴 합니다.
view > viewModel에서 각각의 navigate 처리를 하기 위함.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안녕하세요 태환님 리뷰 감사드립니다.
구현을 고민해보며 MainNavigator에서 MainViewModel을 통한 Navigate가 아닌,
탭 선택 시 상태를 각 스크린에 전파하고 각 스크린의 뷰모델이 Navigate 책임을 이행하도록 수정했습니다.
MainNavigator는 내부적으로 NavController와 MainTab을 활용해 탭 네비게이팅 관련 API를 잘 캡슐화하고 있다고 판단해 그대로 두었습니다.
|
@s9hn 컴플릭 한번 더 확인 부탁드려요. 수정이 많아서 뒷단에서... |
…함수 수정 및 사용하지 않는 MainNavigator 코드 제거
|
리베이스를 잘못건드려서 삽질을 좀..했습니다 |
|
@s9hn 고생하셨습니다! 생소한 패턴이였을건데 이 부분 이해하시고 적용에 감사드립니다! |
|
머지 후 수정하겠습니다. |
Issue
Overview (Required)
Problem
saveState분기에 맞추어popUpTo를 호출하도록 구현했습니다.launchSingleTop옵션을 사용할 수 없어 이를 추가했습니다.[App] ScreenTest Hilt 빌드 에러 해결 #521 해당 이슈에서 작업하겠습니다.
Question
Screenshot
Links