Skip to content

Commit

Permalink
Merge pull request #200 from mash-up-kr/feature/sz/deadline-timer-issue
Browse files Browse the repository at this point in the history
[DA] 마감임박 타이머 종료 후 Action delay 추가
  • Loading branch information
szzang-kr authored Aug 31, 2022
2 parents cb3a715 + 79c5931 commit e9b8c84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Projects/App/Sources/Main/MainViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@ extension MainViewModel {
})
.disposed(by: disposeBag)

// 마감 시간이 지나고 바로 리스트 재요청 시 그대로 남아있는 이슈가 있음
// 따라서 delay 500ms를 추가함
/// 마감 시간이 지나고 바로 리스트 재요청 시 그대로 남아있는 이슈가 있음
/// 따라서 delay 1초를 추가함
/// - Note: https://github.com/mash-up-kr/GGiriGGiri_iOS/issues/199
mainDataSource.didDeadLineCountdownTimeOver
.delay(.milliseconds(500), scheduler: MainScheduler.instance)
.delay(.seconds(1), scheduler: MainScheduler.instance)
.subscribe(onNext: { [weak self] in
self?.reload()
})
Expand Down

0 comments on commit e9b8c84

Please sign in to comment.