Skip to content

Commit 3ff5df9

Browse files
committed
remove test code
1 parent 0cc9f19 commit 3ff5df9

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

Diff for: examples/vanilla/basic/src/main.ts

+3-16
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Person = {
1212
status: string
1313
progress: number
1414
}
15-
/*
15+
1616
const data: Person[] = [
1717
{
1818
firstName: 'tanner',
@@ -38,10 +38,7 @@ const data: Person[] = [
3838
status: 'Complicated',
3939
progress: 10,
4040
},
41-
];
42-
*/
43-
44-
const data = new Array(50000).fill({});
41+
]
4542

4643
const columnHelper = createColumnHelper<Person>()
4744

@@ -99,15 +96,8 @@ const renderTable = () => {
9996
theadElement.appendChild(trElement)
10097
})
10198

102-
103-
table.getRowModel();
104-
105-
106-
/*
10799
// Render table rows
108-
table.getRowModel().rows.forEach((row, idx) => {
109-
if (idx > 10) return;
110-
100+
table.getRowModel().rows.forEach(row => {
111101
const trElement = document.createElement('tr')
112102
row.getVisibleCells().forEach(cell => {
113103
const tdElement = document.createElement('td')
@@ -120,7 +110,6 @@ const renderTable = () => {
120110
tbodyElement.appendChild(trElement)
121111
})
122112

123-
/*
124113
// Render table footers
125114
table.getFooterGroups().forEach(footerGroup => {
126115
const trElement = document.createElement('tr')
@@ -134,8 +123,6 @@ const renderTable = () => {
134123
tfootElement.appendChild(trElement)
135124
})
136125

137-
*/
138-
139126
// Clear previous content and append new content
140127
const wrapperElement = document.getElementById('wrapper') as HTMLDivElement
141128
wrapperElement.innerHTML = ''

Diff for: packages/table-core/src/utils/getCoreRowModel.ts

-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ export function getCoreRowModel<TData extends RowData>(): (
7171
return rows
7272
}
7373

74-
console.time('accessRows');
7574
rowModel.rows = accessRows(data)
76-
console.timeEnd('accessRows');
7775

7876
return rowModel
7977
},

0 commit comments

Comments
 (0)