Conversation
Seony777
requested changes
Feb 5, 2026
Collaborator
There was a problem hiding this comment.
// MyPage.tsx:105
const userProfile = queryClient.getQueryData<UserProfileResult>([queryKey.USER_PROFILE]);
현재 이렇게 getQueryData()로 유저정보를 가져오고 있는데 이럴 경우 캐시가 업데이트되어도 컴포넌트가 리렌더되지 않는 케이스가 발생할 수 있을 거 같습니다!
(ex. 창을 두개 띄운경우, 비로그인으로 마이페이지 들어왔다가 로그인 후 다시 오는경우)
const { user: userProfile } = useAuth();
이런식으로 React Query를 실제 구독하는 방식으로 유저 프로필을 가져오면 업데이트 된 캐시가 바로 반영되어 좋을 거 같습니다!
Member
Author
말씀주신대로 useAuth()에서 React Query를 구독하는 방식으로 변경하여 캐시 업데이트 시 MyPage에도 즉시 반영되도록 수정했습니다! 확인 후 이상 없으면 승인 부탁드립니다! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 관련 이슈번호
close : #129
🔍 구현한 내용
마이페이지 유저 프로필 조회 API 연동
MyPage UI에 유저 프로필 데이터 바인딩
RoundedLifestyleTag 라벨 렌더링 수정
📸 스크린샷 or 실행 영상
default.mov
default.mp4
📢 리뷰어에게