Skip to content

[Refactor] 여행 리스트 캐시처리 및 스켈레톤 뷰 수정#60

Merged
minneee merged 5 commits intomainfrom
refactor/travel-list-cache
Dec 16, 2025
Merged

[Refactor] 여행 리스트 캐시처리 및 스켈레톤 뷰 수정#60
minneee merged 5 commits intomainfrom
refactor/travel-list-cache

Conversation

@minneee
Copy link
Contributor

@minneee minneee commented Dec 15, 2025

✨ 작업 내용

  • asyncStream을 이용해서 여행 리스트 캐시 처리
  • 스켈레톤 뷰가 탭 아래 영역에서만 나타나도록 변경
  • 리뷰 후에 캐시 처리 방법에 문제 없으면 TravelDetail쪽도 같은 방법으로 처리하겠습니다.

Copy link
Contributor

@Peter1119 Peter1119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 ~!
수정하고 한번 더 알려주세요 ~!

Comment on lines +22 to +25
let hasCacheForTab = store.cachedTravelsByTab[store.selectedTab] != nil
let shouldShowSkeleton = store.isLoading && !hasCacheForTab && store.travels.isEmpty

return ZStack {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZStack background로 변경되면 좋을 것 같고
hasCacheForTab, shouldShowSkeleton은 feature의 계산 프로퍼티로 있어도 될 것 같아요 ~!

Comment on lines 14 to 15
VStack(alignment: .center, spacing: 0) {
Image(assetName: "luggage")
Image(assetName: "emptyTravelList")
.resizable()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

asset Enum으로 들어가면 좋을 것 같습니다 ~!

Copy link
Contributor

@Roy-wonji Roy-wonji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Peter1119 수고 하셨습니다

Copy link
Contributor

@Peter1119 Peter1119 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우선 머지하고 수정하는 방향이 좋을 것 같습니다 ~!

@minneee minneee merged commit 3de7cd8 into main Dec 16, 2025
1 check passed
@minneee minneee deleted the refactor/travel-list-cache branch December 16, 2025 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants