summaryrefslogtreecommitdiff
path: root/components/data-table/data-table.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/data-table/data-table.tsx')
-rw-r--r--components/data-table/data-table.tsx7
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">
{/* ν…Œμ΄λΈ” 헀더 */}