docs: add cleanup function to useDelayedValue hook's useEffect #1290
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
가이드선택 확인 사항