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 3ff5df9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
19 changes: 3 additions & 16 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 @@ -38,10 +38,7 @@ const data: Person[] = [
status: 'Complicated',
progress: 10,
},
];
*/

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

const columnHelper = createColumnHelper<Person>()

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


table.getRowModel();


/*
// Render table rows
table.getRowModel().rows.forEach((row, idx) => {
if (idx > 10) return;
table.getRowModel().rows.forEach(row => {
const trElement = document.createElement('tr')
row.getVisibleCells().forEach(cell => {
const tdElement = document.createElement('td')
Expand All @@ -120,7 +110,6 @@ const renderTable = () => {
tbodyElement.appendChild(trElement)
})

/*
// Render table footers
table.getFooterGroups().forEach(footerGroup => {
const trElement = document.createElement('tr')
Expand All @@ -134,8 +123,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 3ff5df9

Please sign in to comment.