Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dfahlander opened this issue Apr 16, 2025 · 0 comments
Open

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

dfahlander opened this issue Apr 16, 2025 · 0 comments

Comments

@dfahlander
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant