Skip to content

Commit d9e3927

Browse files
committed
[chore] feedviewcontroller 중복 api 호출 해결
viewwillappear의 호출부 제거
1 parent 88d3e02 commit d9e3927

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

HilingualPresentation/Sources/Presentation/Feed/FeedViewController.swift

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,14 @@ public final class FeedViewController: BaseUIViewController<FeedViewModel> {
8282
navigationController?.setNavigationBarHidden(true, animated: false)
8383

8484
input.reload.send()
85-
85+
}
86+
87+
public override func viewDidAppear(_ animated: Bool) {
88+
super.viewDidAppear(animated)
8689
recommendFeedVC.refresh()
8790
followingFeedVC.refresh()
8891
}
89-
92+
9093
// MARK: - Binding
9194

9295
public override func bind(viewModel: FeedViewModel) {
@@ -99,13 +102,6 @@ public final class FeedViewController: BaseUIViewController<FeedViewModel> {
99102
}
100103
.store(in: &viewModel.cancellables)
101104
}
102-
103-
public override func viewDidAppear(_ animated: Bool) {
104-
super.viewDidAppear(animated)
105-
106-
recommendFeedVC.refresh()
107-
followingFeedVC.refresh()
108-
}
109105

110106
//MARK: - Action
111107

0 commit comments

Comments
 (0)