We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ce11ca commit 09a0e23Copy full SHA for 09a0e23
1 file changed
Application/DevLogPresentation/Sources/Main/MainView.swift
@@ -38,8 +38,10 @@ struct MainView: View {
38
}
39
40
41
- .onChange(of: selectedTab) { oldValue, newValue in
+ .onAppear {
42
coordinator.mainViewModel.send(.onAppear)
43
+ }
44
+ .onChange(of: selectedTab) { oldValue, newValue in
45
if oldValue == nil && newValue == .home {
46
homeViewCoordinator.loadInitialData()
47
0 commit comments