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
I have an external toggle that flips between two states. In one state, I want to sort by columns A, B, and C. In the other state, I want to sort by columns C and D.
Is there a nice way to do this that doesn't involve individually calling toggleSortBy() on each column inside a useEffect? Or is that really how I should do it? I just wonder if there may be a more efficient way available.
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.
-
I have an external toggle that flips between two states. In one state, I want to sort by columns A, B, and C. In the other state, I want to sort by columns C and D.
Is there a nice way to do this that doesn't involve individually calling toggleSortBy() on each column inside a useEffect? Or is that really how I should do it? I just wonder if there may be a more efficient way available.
Beta Was this translation helpful? Give feedback.
All reactions