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