let {
getTableProps,
getTableBodyProps,
headerGroups,
prepareRow,
page,
canPreviousPage,
canNextPage,
nextPage,
previousPage,
state: { pageIndex, sortBy }
} = useTable(
{
columns,
data,
sortable: {dsiabledSort}
manualPagination: true,
manualSortBy: true
},
useSortBy,
usePagination
);
dsiabledSort is variable it will be either false or true, its set to true, but still table have sorting... I also tried simply
sortable:false
But still not working
Any help Thanks