Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Button Blocked 추가 & 프로필 팔로우/팔로잉 버튼 API 중복 호출 수정 #505

Merged
merged 4 commits into from
Feb 10, 2024

Conversation

sumi-0011
Copy link
Member

🤔 해결하려는 문제가 무엇인가요?

  • 팔로우/팔로잉 버튼을 연속으로 클릭시, 중복으로 API를 호출하여 에러 토스트가 뜨는 문제가 있었어요.
  • 팔로우/팔로잉 버튼을 누른 후 API가 호출되는 동안 버튼의 클릭을 막기위해 버튼에 blocked props를 추가하였습니다.
  • 단순히 팔로우 API의 pending 기간을 기다리는 것 뿐만 아니라, 이어지는 동작인 팔로우 리스트 refetch를 같이 기다려야 원하는 기능이 동작했어요. !!!

Copy link

vercel bot commented Feb 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
10mm-client-web ✅ Ready (Inspect) Visit Preview Feb 9, 2024 9:42am

Copy link
Contributor

github-actions bot commented Feb 9, 2024

@wade3420 wade3420 merged commit 5a129cc into develop Feb 10, 2024
5 checks passed
@wade3420 wade3420 deleted the feat/button-blocked branch February 10, 2024 07:39
Copy link
Contributor

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

Successfully merging this pull request may close these issues.

3 participants