We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6cd2f6 commit c0a2aceCopy full SHA for c0a2ace
1 file changed
Application/DevLogPresentation/Sources/Main/MainView.swift
@@ -41,7 +41,7 @@ struct MainView: View {
41
.onAppear {
42
coordinator.mainViewModel.send(.onAppear)
43
}
44
- .onChange(of: selectedTab) { _, newValue in
+ .onChange(of: selectedTab, initial: true) { _, newValue in
45
if newValue == .home {
46
homeViewCoordinator.loadInitialData()
47
} else if newValue == .today {
0 commit comments