Skip to content

Commit 886bae5

Browse files
committed
perf : 워크스페이스 아이템 렌더링 최적화
1 parent 6034708 commit 886bae5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/components/WorkspaceList/WorkspaceThumbnailItem.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { memo } from 'react';
2+
13
import style from './style.module.scss';
24

35
interface WorkspaceThumbnailItemProps {
@@ -19,4 +21,4 @@ function WorkspaceThumbnailItem({ name }: WorkspaceThumbnailItemProps) {
1921
);
2022
}
2123

22-
export default WorkspaceThumbnailItem;
24+
export default memo(WorkspaceThumbnailItem);

0 commit comments

Comments
 (0)