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'm trying to store the order of columns in localStorage the same way as I store filters, sorting, resizing etc. As I reorder the columns, I can see localStorage updated with the correct order but when I refresh the page, it changes back to the default columns order.
In looking at the documentation, I see as of v2.10.0, MRT will automatically re-generate the columnOrder state internally if the number of columns and length of the columnOrder state do not match. Wondering if this has something to do with it? Or am I missing something completely here?
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to store the order of columns in localStorage the same way as I store filters, sorting, resizing etc. As I reorder the columns, I can see localStorage updated with the correct order but when I refresh the page, it changes back to the default columns order.
In looking at the documentation, I see as of v2.10.0, MRT will automatically re-generate the columnOrder state internally if the number of columns and length of the columnOrder state do not match. Wondering if this has something to do with it? Or am I missing something completely here?
https://codesandbox.io/p/sandbox/recursing-poincare-y8ckc4
Beta Was this translation helpful? Give feedback.
All reactions