Skip to content

Commit

Permalink
feat: #305 댓글 컴포넌트 메모이제이션
Browse files Browse the repository at this point in the history
  • Loading branch information
bomi8489 committed Jun 28, 2024
1 parent 676d32b commit 64a5089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/common/Comment/Comment.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client'

import React from 'react'
import { useModal } from '@/hooks'
import { useCurrentUser } from '@/hooks/useCurrentUser'
import { getElapsedTime } from '@/utils'
Expand Down Expand Up @@ -162,4 +163,4 @@ const Comment = ({
)
}

export default Comment
export default React.memo(Comment)

0 comments on commit 64a5089

Please sign in to comment.