Skip to content
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

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

Open
Semanual opened this issue Jun 25, 2024 · 0 comments
Open

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

Semanual opened this issue Jun 25, 2024 · 0 comments

Comments

@Semanual
Copy link

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.

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

No branches or pull requests

1 participant