8000 Is Collection.sortBy supported in `immutable` cache mode? · Issue #2157 · dexie/Dexie.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Is Collection.sortBy supported in immutable cache mode? #2157
Open
@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

No one assigned

    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

      0