Skip to content

Conversation

@hyeongjun6364
Copy link
Collaborator

@hyeongjun6364 hyeongjun6364 commented Jan 28, 2025

구현내용

지원자를 클릭했을 때, 불 필요한 리 렌더링이 발생하여 개선하였습니다.

사이드바의 경우, commit phase만 막기 위해 memo를 사용했지만, 아이템 메뉴를 가져오는 함수의 참조값이 달라지면서 render phase가 변경되어 재 렌더링이 발생하는 문제가 있었어요.
이를 useMemo를 사용하여 참조값 유지를 통해 문제 해결하였습니다.

[기존]
image (1)

[개선 후]
image

연관이슈

close #150

@hyeongjun6364 hyeongjun6364 self-assigned this Jan 28, 2025
@hyeongjun6364 hyeongjun6364 added the 🛠개선 성능 개선/리팩토링에 대한 라벨 label Jan 28, 2025
Copy link
Collaborator

@hwookim hwookim left a comment

Choose a reason for hiding this comment

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

실제로 이전-이후의 성능 개선이 얼마나 되었는지 수치로 확인해볼 수 있으면 좋겠네요 👀

@hyeongjun6364 hyeongjun6364 merged commit 15a9ffa into develop Jan 30, 2025
1 check passed
@hyeongjun6364 hyeongjun6364 deleted the feat/#150 branch January 30, 2025 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🛠개선 성능 개선/리팩토링에 대한 라벨

Projects

None yet

Development

Successfully merging this pull request may close these issues.

지원자 리스트 페이지 - 렌더링 성능 개선

5 participants