Skip to content

Commit

Permalink
[fix] #120 안쓰는 액션 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 authored and stealmh committed Sep 23, 2024
1 parent f23cdff commit b0c67db
Showing 1 changed file with 0 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,40 +294,6 @@ private extension ContentListFeature {
break
}
}
case .컨텐츠_목록_갱신:
state.domain.pageable.page = 0
return .run { [
type = state.contentType,
pageable = state.domain.pageable
] send in
switch type {
case .unread:
let contentList = try await remindClient.읽지않음_컨텐츠_조회(
BasePageableRequest(
page: pageable.page,
size: pageable.size,
sort: pageable.sort
)
).toDomain()
await send(
.inner(.컨텐츠_목록_갱신(contentList)),
animation: pageable.page == 0 ? .pokitDissolve : nil
)
case .favorite:
let contentList = try await remindClient.즐겨찾기_링크모음_조회(
BasePageableRequest(
page: pageable.page,
size: pageable.size,
sort: pageable.sort
)
).toDomain()
await send(
.inner(.컨텐츠_목록_갱신(contentList)),
animation: pageable.page == 0 ? .pokitDissolve : nil
)
}

}
case .페이징_재조회:
return .run { [
pageable = state.domain.pageable,
Expand Down

0 comments on commit b0c67db

Please sign in to comment.