refactor(navigation): 전역 경로 기반 단일 내비게이션 흐름으로 전환한다
This commit is contained in:
@@ -26,6 +26,7 @@ struct UserProfileView: View {
|
||||
@State private var isShowChannelDonationDialog: Bool = false
|
||||
@State private var didTriggerAutoBackOnLoadFailure: Bool = false
|
||||
@State private var isViewVisible: Bool = false
|
||||
@State private var loadedUserId: Int? = nil
|
||||
|
||||
@State private var maxCommunityPostHeight: CGFloat? = nil
|
||||
|
||||
@@ -639,7 +640,12 @@ struct UserProfileView: View {
|
||||
.onAppear {
|
||||
isViewVisible = true
|
||||
didTriggerAutoBackOnLoadFailure = false
|
||||
viewModel.getCreatorProfile(userId: userId)
|
||||
|
||||
if loadedUserId != userId || viewModel.creatorProfile == nil {
|
||||
loadedUserId = userId
|
||||
viewModel.getCreatorProfile(userId: userId)
|
||||
}
|
||||
|
||||
AppState.shared.pushChannelId = 0
|
||||
}
|
||||
.onDisappear {
|
||||
|
||||
Reference in New Issue
Block a user