You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would I go about implementing multi-sort with manual sorting enabled?
As I understand it, I can't use built-in getToggleSortingHandler or toggleSorting column methods and have to write my own logic.
This is because state provided by onSortingChange handler does not take multi-sort events into account when manual sorting is enabled. And I cannot determinate if the state change is from multi-sort event, since the only provided parameter is the updaterFn.
This prevents me from choosing if I want to persist the state change fully or partially in my handler outside of the table.
Is this the correct approach or am I missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
How would I go about implementing multi-sort with manual sorting enabled?
As I understand it, I can't use built-in
getToggleSortingHandler
ortoggleSorting
column methods and have to write my own logic.This is because state provided by
onSortingChange
handler does not take multi-sort events into account when manual sorting is enabled. And I cannot determinate if the state change is from multi-sort event, since the only provided parameter is theupdaterFn
.This prevents me from choosing if I want to persist the state change fully or partially in my handler outside of the table.
Is this the correct approach or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions