mantinedev / ui.mantine.dev

Mantine UI website and components
https://ui.mantine.dev
MIT License
2.84k stars 314 forks source link

Improve the filterData function in TableSort.tsx #92

Open kingdevil731 opened 4 months ago

kingdevil731 commented 4 months ago

Issue

The keys(data[0]) operation is performed for each item in the data array. This is inefficient, as the keys are the same for all items

Resolution

Perform this operation once and reuse the result.