Using react-table V7 useSortBy hook's toggleSortBy function toggles ascending first then descending and then on third toggle instead of setting isSortedDesc to false, it sets isSorted to false.
I want to keep toggling between true and false values till a different header is clicked.
check this link for reference of the issue