Skip to content

Commit 09a0e23

Browse files
committed
fix: MainView의 초기 관찰 시작 시점을 onAppear로 되돌림
1 parent 9ce11ca commit 09a0e23

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Application/DevLogPresentation/Sources/Main/MainView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ struct MainView: View {
3838
}
3939
}
4040
}
41-
.onChange(of: selectedTab) { oldValue, newValue in
41+
.onAppear {
4242
coordinator.mainViewModel.send(.onAppear)
43+
}
44+
.onChange(of: selectedTab) { oldValue, newValue in
4345
if oldValue == nil && newValue == .home {
4446
homeViewCoordinator.loadInitialData()
4547
}

0 commit comments

Comments
 (0)