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
we are finding that the Channel object is auto inserted in db without us calling add/put.
if we call add it throws, Key already exists in the object store.\n ConstraintError: Key already exists in the object store
I have tried wrapping the function in dexie.ignoretransaction but that fails.
this is happening in all browsers for me [ latest patched as of date, chrome, safari, macOS 14.4.1 ]
I have tried dexie 3.2.x version and 4.0.1 versions.
The text was updated successfully, but these errors were encountered:
I am sure that object does not exist in db before as I added the hook
this.channel.hook('creating', function (primKey, obj, transaction) {
console.log('log in mytChatDB', primKey, obj)
return undefined
})
it is able to read from db, then above hook is called, then I get an error of item already exists
this is my dexie db file
we get a packet from server which we parse and try to add it to db
we are finding that the Channel object is auto inserted in db without us calling add/put.
if we call add it throws,
Key already exists in the object store.\n ConstraintError: Key already exists in the object store
I have tried wrapping the function in dexie.ignoretransaction but that fails.
this is happening in all browsers for me [ latest patched as of date, chrome, safari, macOS 14.4.1 ]
I have tried dexie 3.2.x version and 4.0.1 versions.
The text was updated successfully, but these errors were encountered: