Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
mleibman-db committed Feb 21, 2025
1 parent 0cc9f19 commit 4d37f6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 1 addition & 12 deletions examples/vanilla/basic/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Person = {
status: string
progress: number
}
/*

const data: Person[] = [
{
firstName: 'tanner',
Expand All @@ -39,9 +39,6 @@ const data: Person[] = [
progress: 10,
},
];
*/

const data = new Array(50000).fill({});

const columnHelper = createColumnHelper<Person>()

Expand Down Expand Up @@ -99,11 +96,6 @@ const renderTable = () => {
theadElement.appendChild(trElement)
})


table.getRowModel();


/*
// Render table rows
table.getRowModel().rows.forEach((row, idx) => {
if (idx > 10) return;
Expand All @@ -120,7 +112,6 @@ const renderTable = () => {
tbodyElement.appendChild(trElement)
})

/*
// Render table footers
table.getFooterGroups().forEach(footerGroup => {
const trElement = document.createElement('tr')
Expand All @@ -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 = ''
Expand Down
2 changes: 0 additions & 2 deletions packages/table-core/src/utils/getCoreRowModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export function getCoreRowModel<TData extends RowData>(): (
return rows
}

console.time('accessRows');
rowModel.rows = accessRows(data)
console.timeEnd('accessRows');

return rowModel
},
Expand Down

0 comments on commit 4d37f6d

Please sign in to comment.