File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Feature/FeatureContentDetail/Sources/ContentDetail Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,9 @@ public extension MainTabFeature {
135135 let . path( . element( _, action: . 알림함( . delegate( . moveToContentEdit( id) ) ) ) ) :
136136 return . run { send in await send ( . inner( . 링크추가및수정이동( contentId: id) ) ) }
137137
138- /// - 컨텐츠 상세보기 닫힘
139- case . contentDetail( . dismiss) :
138+ /// - 컨텐츠 상세보기 내부 액션 실행
139+ case . contentDetail( . presented( . delegate( . 즐겨찾기_갱신_완료) ) ) ,
140+ . contentDetail( . presented( . delegate( . 컨텐츠_조회_완료) ) ) :
140141 guard let stackElementId = state. path. ids. last,
141142 let lastPath = state. path. last else {
142143 switch state. selectedTab {
Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ public struct ContentDetailFeature {
9494
9595 public enum DelegateAction : Equatable {
9696 case editButtonTapped( contentId: Int )
97+ case 즐겨찾기_갱신_완료
98+ case 컨텐츠_조회_완료
9799 }
98100 }
99101
@@ -216,10 +218,13 @@ private extension ContentDetailFeature {
216218 return . none
217219 case . 컨텐츠_상세_조회( content: let content) :
218220 state. domain. content = content
219- return . send( . inner( . parsingURL) )
221+ return . run { send in
222+ await send ( . delegate( . 컨텐츠_조회_완료) )
223+ await send ( . inner( . parsingURL) )
224+ }
220225 case . 즐겨찾기_갱신( let favorite) :
221226 state. domain. content? . favorites = favorite
222- return . none
227+ return . send ( . delegate ( . 즐겨찾기_갱신_완료 ) )
223228 case . 링크미리보기_presented:
224229 state. showLinkPreview = true
225230 return . none
You can’t perform that action at this time.
0 commit comments