const table = useTable(
{
columns,
data: tableData,
sortTypes: {
...sortTypes,
},
defaultColumn,
initialState: {
pageIndex: 0,
pageSize: paginationOptions.length ? paginationOptions[0] : 10,
sortBy,
},
},
useResizeColumns,
useFlexLayout,
useFilters,
useSortBy,
usePagination,
useRowSelect,
)export default (rowA: Row, rowB: Row, columnId: string, desc: boolean): number => {
if (rowB.original.row_names === 'TOTAL') return -1
return 0
}{
disableFilters: true,
sortType: 'defaultSortType',
Header: () => 'Header',
Cell: (cell) => {
return <p className="text-2xs xl:text-sm">{cell.value}</p>
},
accessor: 'test',
width: 1,
}https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet · 19h ago
https://x.com/powersync_/status/2010721010006552775?s=20
dry-scarlet · 2mo ago
You can now submit your website/app/project to http://TanStack.com 's new showcase and have it seen by the TanStack community! - Global showcase browser - Per-library filters - Category filters Submit here: https://tanstack.com/showcase/submit View all here: https://tanstack.com/showcase
dry-scarlet · 3mo ago