Skip to content

Conversation

@y-eonee
Copy link
Collaborator

@y-eonee y-eonee commented Dec 24, 2025

🔗 연결된 이슈

📄 작업 내용

  • 유저 중복저장 버그 수정했습니다
  • 지금 실기기 빌드가 안되어서 시뮬레이터로 테스트했는데.. 실기기 빌드 가능해지면 한번 더 봐야할 것 같아요!
image image

💻 주요 코드 설명

로그인 뷰컨트롤러에 다음과 같은 코드를 추가했습니다.

 viewModel.output.isRegisteredPublisher
      .throttle(for: .seconds(1.0), scheduler: DispatchQueue.main, latest: false)
      .receive(on: DispatchQueue.main)
.... 

throttle은 지정된 시간동안 연속으로 값이 방출되더라도 제일 처음/제일 마지막 중 하나만 방출된 값을 퍼블리시한다고 합니다
latest false는 제일 처음에 쓴 걸 가져오기 위해서 false로 지정해주었습니다 !!

@y-eonee y-eonee self-assigned this Dec 24, 2025
@y-eonee y-eonee added 나연🐹 fix 버그나 오류 해결 labels Dec 24, 2025
@y-eonee y-eonee linked an issue Dec 24, 2025 that may be closed by this pull request
1 task
Copy link
Collaborator

@dev-domo dev-domo left a comment

Choose a reason for hiding this comment

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

throttle이란 게 있군요! Combine 스터디 할 사람...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그나 오류 해결 나연🐹

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 회원 가입 버튼 연타 시 유저 중복 저장 버그 수정

3 participants