Dexie.js: Failed to execute 'objectStore' on 'IDBTransaction': The transaction has finished

code: 11 message: “Failed to execute ‘objectStore’ on ‘IDBTransaction’: The transaction has finished.” name: “InvalidStateError”

my code is simple: return await this.table.update(id, { examineDate: data.examineDate }) but,it return error notice like that ↑,I found so many answers from google and github and stackoverflow but no one useful help me please,it’s very urgent, thx @dfahlander 🙏

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 18

Most upvoted comments

alright, I installed latest version dexie in my project my code in function just has one line ,like this:

async update(data: any) {
return await this.table.update(id, { examineDate: data.examineDate })
}

haven’t transaction around of them. I ever tried to write the transaction around of this codes, but didn’t work