diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-06 04:23:40 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-06 04:23:40 +0000 |
| commit | de2ac5a2860bc25180971e7a11f852d9d44675b7 (patch) | |
| tree | b931c363f2cb19e177a0a7b17190d5de2a82d709 /components/data-table/data-table.tsx | |
| parent | 6c549b0f264e9be4d60af38f9efc05b189d6849f (diff) | |
(대표님) 정기평가, 법적검토, 정책, 가입관련 처리 및 관련 컴포넌트 추가, 메뉴 변경
Diffstat (limited to 'components/data-table/data-table.tsx')
| -rw-r--r-- | components/data-table/data-table.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/data-table/data-table.tsx b/components/data-table/data-table.tsx index 33fca5b8..b898c2ea 100644 --- a/components/data-table/data-table.tsx +++ b/components/data-table/data-table.tsx @@ -66,9 +66,14 @@ export function DataTable<TData>({ [compact] ); + const stableChildren = React.useMemo(() => { + console.log("📦 DataTable children 메모이제이션됨"); + return children; + }, [children]); + return ( <div className={cn("w-full space-y-2.5 overflow-auto", className)} {...props}> - {children} + {stableChildren} <div className="max-w-[100vw] overflow-auto" style={{ maxHeight: maxHeight || '35rem' }} > <Table className="[&>thead]:sticky [&>thead]:top-0 [&>thead]:z-10 table-fixed"> {/* 테이블 헤더 */} |
