diff --git a/examples/vanilla/basic/src/main.ts b/examples/vanilla/basic/src/main.ts index 1db9513f17..4a2fafa391 100644 --- a/examples/vanilla/basic/src/main.ts +++ b/examples/vanilla/basic/src/main.ts @@ -12,7 +12,7 @@ type Person = { status: string progress: number } -/* + const data: Person[] = [ { firstName: 'tanner', @@ -39,9 +39,6 @@ const data: Person[] = [ progress: 10, }, ]; -*/ - -const data = new Array(50000).fill({}); const columnHelper = createColumnHelper() @@ -99,11 +96,6 @@ const renderTable = () => { theadElement.appendChild(trElement) }) - - table.getRowModel(); - - -/* // Render table rows table.getRowModel().rows.forEach((row, idx) => { if (idx > 10) return; @@ -120,7 +112,6 @@ const renderTable = () => { tbodyElement.appendChild(trElement) }) - /* // Render table footers table.getFooterGroups().forEach(footerGroup => { const trElement = document.createElement('tr') @@ -134,8 +125,6 @@ const renderTable = () => { tfootElement.appendChild(trElement) }) - */ - // Clear previous content and append new content const wrapperElement = document.getElementById('wrapper') as HTMLDivElement wrapperElement.innerHTML = '' diff --git a/packages/table-core/src/utils/getCoreRowModel.ts b/packages/table-core/src/utils/getCoreRowModel.ts index e7c886296e..e6f7349a27 100644 --- a/packages/table-core/src/utils/getCoreRowModel.ts +++ b/packages/table-core/src/utils/getCoreRowModel.ts @@ -71,9 +71,7 @@ export function getCoreRowModel(): ( return rows } - console.time('accessRows'); rowModel.rows = accessRows(data) - console.timeEnd('accessRows'); return rowModel },