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

[REFACTOR] ChatInput 비제어 컴포넌트로 렌더링 최적화 #277

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

gominzip
Copy link
Member

@gominzip gominzip commented Dec 3, 2024

🚀 Issue Number

주요 작업

  • 채팅창 인풋의 value를 state가 아닌 useRef를 통해 관리하여 렌더링 최적화를 진행했습니다.

고민과 해결 과정

📸 Screenshots

개선 전, 텍스트 변화마다 리렌더링 발생

before

개선 후, 리렌더링이 일어나지 않음

after

🔜 추가 내용 (선택)

@gominzip gominzip added REFACTOR 리팩토링 FE🎄 labels Dec 3, 2024
@gominzip gominzip self-assigned this Dec 3, 2024
@spearStr spearStr merged commit 0120d41 into dev-fe Dec 3, 2024
3 checks passed
@spearStr spearStr deleted the feature-fe-#249-chat_ban branch December 3, 2024 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE🎄 REFACTOR 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants