File tree Expand file tree Collapse file tree
Application/DevLogPresentation/Sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ struct MainView: View {
4848 homeViewCoordinator. fetchData ( )
4949 } else if newValue == . today {
5050 todayViewCoordinator. fetchData ( )
51+ } else if newValue == . notification {
52+ coordinator. fetchData ( )
5153 } else if newValue == . profile {
5254 profileViewCoordinator. fetchData ( )
5355 }
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ final class MainViewCoordinator {
3737 )
3838 }
3939
40+ func fetchData( ) {
41+ pushNotificationListViewModel. send ( . fetchNotifications)
42+ }
43+
4044 func todoListViewModel( category: TodoCategory ) -> TodoListViewModel {
4145 if let todoListViewModel,
4246 todoListViewModel. category == category {
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ struct PushNotificationListView: View {
2929 headerOffset = max ( 0 , - offset)
3030 }
3131 . safeAreaInset ( edge: . top) { safeAreaHeader }
32- . onAppear { viewModel. send ( . fetchNotifications) }
3332 . refreshable { viewModel. send ( . fetchNotifications) }
3433 . navigationTitle ( String ( localized: " nav_push_notifications " ) )
3534 . listStyle ( . plain)
You can’t perform that action at this time.
0 commit comments