docs: add cleanup function to useDelayedValue hook's useEffect#1290
Closed
wo-o29 wants to merge 1 commit intoreactjs:mainfrom
Closed
docs: add cleanup function to useDelayedValue hook's useEffect#1290wo-o29 wants to merge 1 commit intoreactjs:mainfrom
wo-o29 wants to merge 1 commit intoreactjs:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Collaborator
|
PR 작업해주셔서 감사드립니다! 다만, #1290 #1295 #1299 PR 모두 예제 코드 수정 관련 PR이라, (예제에 문제가 있다는 점은 확인했습니다.) 영어 원문을 그대로 받아오는 한국 공식 문서 특성 상 해당 내용들은 승인이 어렵습니다. 해당 내용들은 업스트림인 영어 원문 레포지토리 ( https://github.com/reactjs/react.dev )에 직접 PR을 올려서 진행해주시는 편이 더 좋을 것 같습니다. (PR이 승인 될 경우, 해당 내용들은 자동으로 한국 공식 문서로 넘어옵니다.) 이러한 이유로 부득이하게 예제 관련 PR들은 close 하도록 하겠습니다. |
This was referenced Sep 1, 2025
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.
useDelayedValue 훅에 setTimeout cleanup 함수 추가
useDelayedValue 훅 내 useEffect의 setTimeout에 cleanup 함수를 추가하여 컴포넌트 언마운트 시 타이머를 정리해 메모리 누수를 방지하도록 수정했습니다.
기존에는 cleanup 함수가 없어 컴포넌트가 언마운트 되거나 의존성 변경 시 타이머가 남아있을 가능성이 있었으나,
이번 변경으로 안정성과 성능이 개선됩니다.
필수 확인 사항
textlint가이드선택 확인 사항