You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect either the deletion to be successful, or to throw error. The documentation does not mention any problems with deleting collections that have filter()s applied.
The text was updated successfully, but these errors were encountered:
Thanks for the report. Could you create a repro in https://jsitor.com/, https://codesandbox.io/ or jsfiddle? It would help a lot in finding the reason - it may also reveal whether this actually is a bug in dexie or if there is something else that makes it fail.
Thanks for a great repro! Indeed, this is a bug that occurs when using filter on a collection on a partial index ("virtual index"). In this case "userId" is indexed together with "createdAt" ([userId+createdAt]). If directly indexing userId by itself the bug does not happen. I will investigate virtual-index-middleware.ts to understand if it fails to emulate the DBCursor correctly.
In this code:
this
extendsDexie
, andtask
is a table.n
is always zero, even whenreturns some objects.
I expect either the deletion to be successful, or to throw error. The documentation does not mention any problems with deleting collections that have
filter()
s applied.The text was updated successfully, but these errors were encountered: