Fixes #10018. When toggling columns, then sorting them, the table is reset to the collection's default columns instead of the user's preferred columns. This is because when sorting columns, a stale client-side cache of the user's preferences is used to update their sort preference. This is because when column state is constructed server-side, it completely bypasses the client-side cache. To fix this, sort preferences are now also set on the server right alongside column preferences, which performs an upsert-like operation to ensure that no existing preferences are lost.
2.5 KiB
2.5 KiB