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

React.memo로 컴포넌트 리렌더링 방지 #1

Closed
Jxxunnn opened this issue Feb 6, 2023 · 2 comments · Fixed by #2
Closed

React.memo로 컴포넌트 리렌더링 방지 #1

Jxxunnn opened this issue Feb 6, 2023 · 2 comments · Fixed by #2
Assignees

Comments

@Jxxunnn
Copy link
Owner

Jxxunnn commented Feb 6, 2023

헤더 컴포넌트 날짜 변경 시 하단의 페이지 컨트롤바 컴포넌트가 리렌더링 되고 있다.

@Jxxunnn
Copy link
Owner Author

Jxxunnn commented Feb 6, 2023

정렬 기능 작동 시 다이어리 아이템의 위치만 바뀌지 않고 리렌더링이 일어나고 있다.

다이어리리스트

@Jxxunnn
Copy link
Owner Author

Jxxunnn commented Feb 6, 2023

textarea에 문자열을 입력하면 EmotionItem 컴포넌트의 렌더링이 발생한다.

렌더링 방지가 꼭 정답은 아니지만 이렇게 이미지 혹은 영상을 담고 있는 컴포넌트 혹은 길이가 얼마나 길어질지 모르거나 텍스트가 방대한 컴포넌트는 방지해줄 필요가 있다고 판단하였다.

감정들

@Jxxunnn Jxxunnn linked a pull request Feb 6, 2023 that will close this issue
@Jxxunnn Jxxunnn closed this as completed in #2 Feb 6, 2023
@Jxxunnn Jxxunnn reopened this Feb 8, 2023
@Jxxunnn Jxxunnn closed this as completed Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant