Skip to content

Commit 4e20d22

Browse files
committed
Fix feed post fetch bugs on navigates back
1 parent 7bc40b9 commit 4e20d22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BuddyFeature/Sources/BuddyFeatureFeed/Feed/FeedView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public struct FeedView: View {
5555
}
5656
}
5757
.task {
58+
guard viewModel.state == .loading else { return }
5859
await viewModel.fetchInitialData()
5960
}
6061
.refreshable {

0 commit comments

Comments
 (0)