Skip to content

Commit

Permalink
feat: update comments for useUnmountBeforePaint hook
Browse files Browse the repository at this point in the history
  • Loading branch information
DoK6n committed Oct 17, 2024
1 parent 6ede8c9 commit 47912f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-unmount-before-paint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { env } from './utils'
* Effect that runs when the component unmounts before browser paints screen
*
* @ko
* 컴포넌트가 언마운트될 때 실행되는 효과
* 브라우저가 화면을 그리기 전에 컴포넌트가 언마운트될 때 실행되는 효과
*/
export function useUnmountBeforePaint(effect: React.EffectCallback) {
const isPaintedRef = useRef(false)
Expand Down

0 comments on commit 47912f8

Please sign in to comment.