Dexie.js
Dexie.js copied to clipboard
Is Collection.sortBy supported in `immutable` cache mode?
Discussed in https://github.com/dexie/Dexie.js/discussions/2156
Originally posted by jon-smith April 16, 2025
I recently switched to immutable cache mode and have been receiving errors in queries that use Collection.sortBy (e.g: Cannot assign to read only property '0' of object '[object Array]' at Array.sort (<anonymous>...).
Is this the expected behaviour?
I can easily workaround using lodash.sortBy so not a massive issue if it is but wanted to understand the limitations of immutable cache mode.