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: 마이페이지 정보 수정 후 화면에 반환하기 #126

Merged
merged 5 commits into from
Feb 4, 2025

Conversation

ppochaco
Copy link
Member

@ppochaco ppochaco commented Feb 4, 2025

📝 상세 내용

  • 프로필 사진 변경, 프로필 정보 변경 후 초기화되는 queryKey를 수정했습니다.

    • query 초기화가 발생되어야하는 부분: 멤버 페이지에서 profile lsit 조회(profileQuries.list), 마이페이지에서 profile 조회(profileQuries.profile)
    • 두 query key를 포함하는 상위 query로(`profileQuries.all) 사용했습니다.
    - queryKey: profileQuries.profiles({ userId: profile.userId })
    + queryKey: profileQuries.all()
  • useMyInfoStore의 setMyInfo를 리팩토링했습니다.

    • MyInfo를 객체가 아닌 Partial로 받아 특정 부분만 수정가능합니다.
  • Avatar 컴포넌트의 이미지 원본 비율을 유지하기 위해 object-cover style을 추가했습니다.

    • 눈에 보였는데 따로 이슈 만들기에 마이너해서 같이 PR 날립니다.

#️⃣ 이슈 번호

🔗 참고 자료

📷 스크린샷(선택)

@ppochaco ppochaco self-assigned this Feb 4, 2025
@ppochaco ppochaco merged commit 88160de into KNU-HAEDAL-Website:main Feb 4, 2025
1 check passed
@ppochaco ppochaco deleted the feature/105-mypage-query branch February 4, 2025 16:56
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.

자기소개 수정 사항 반영 안 됨 (마이 페이지, 헤더)
1 participant