Skip to content

useLiveQuery does not update live when primary key is number 0 #2021

Description

@Semanual

Whenever you try to table.update(0, {value: "whatever"});, it does update the IndexedDB, but doesn't in useLiveQuery().

Reproduction example: https://github.com/Semanual/dexie-repro
Click the "Randomize" button and see that the IndexedDB updates, but the number above retrieving live from it doesn't. The same doesn't happen with any other primary key, such as 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions