I want sortingFn to do nothing #5197
-
so I want when I click on the headers in columns it should show sort icon if true or false like acs or desc only for this I want keep this code. but problem is I am sorting using api response I don't want local sorting but I still want to have the sorting acs, desc boolean for showing icon so need the sorting state. how can I do it const [sorting, setSorting] = React.useState<SortingState>([])
const table = useReactTable({
data,
columns,
state: {
sorting
},
onSortingChange: setSorting, |
Beta Was this translation helpful? Give feedback.
Answered by
KevinVandy
Dec 10, 2023
Replies: 1 comment 1 reply
-
That's what the manualSorting option is exactly for |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
0xMALVEE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's what the manualSorting option is exactly for