Skip to content

Is Collection.sortBy supported in immutable cache mode? #2157

@dfahlander

Description

@dfahlander

Discussed in #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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions