Dexie.js icon indicating copy to clipboard operation
Dexie.js copied to clipboard

Is Collection.sortBy supported in `immutable` cache mode?

Open dfahlander opened this issue 8 months ago • 0 comments

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.

dfahlander avatar Apr 16 '25 21:04 dfahlander