Replies: 1 comment
-
Thanks. This is most likely a bug and easily fixed. Workaround is to do toArray() instead of sortBy(), and do Array.toSorted() on the result (or clone().sort()) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently switched to
immutable
cache mode and have been receiving errors in queries that useCollection.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 ofimmutable
cache mode.Beta Was this translation helpful? Give feedback.
All reactions