Skip to content

Commit 1f50cf8

Browse files
committed
fix: Home 탭 재진입 시 초기 데이터 로드가 다시 수행되도록 조정
1 parent 09a0e23 commit 1f50cf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Application/DevLogPresentation/Sources/Main/MainView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ struct MainView: View {
4141
.onAppear {
4242
coordinator.mainViewModel.send(.onAppear)
4343
}
44-
.onChange(of: selectedTab) { oldValue, newValue in
45-
if oldValue == nil && newValue == .home {
44+
.onChange(of: selectedTab) { _, newValue in
45+
if newValue == .home {
4646
homeViewCoordinator.loadInitialData()
4747
}
4848
}

0 commit comments

Comments
 (0)