We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb0c910 commit 3bb4158Copy full SHA for 3bb4158
Projects/Feature/FeatureContentDetail/Sources/ContentDetail/ContentDetailFeature.swift
@@ -138,10 +138,14 @@ private extension ContentDetailFeature {
138
func handleViewAction(_ action: Action.View, state: inout State) -> Effect<Action> {
139
switch action {
140
case .뷰가_나타났을때:
141
- guard let id = state.domain.contentId else {
+ if let content = state.content {
142
+ state.domain.content = content
143
+ return .send(.inner(.URL_유효성_확인))
144
+ } else if let id = state.domain.contentId {
145
+ return .send(.async(.컨텐츠_상세_조회_API(id: id)))
146
+ } else {
147
return .none
148
}
- return .send(.async(.컨텐츠_상세_조회_API(id: id)))
149
case .공유_버튼_눌렀을때:
150
state.showShareSheet = true
151
0 commit comments