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
Transaction failed to execute #1394
Comments
It should still work the same. Can you create a repro? |
Not really sure how to do that. This seems to happen when I call Dexie from vue routes. `async update(){
|
Could it be that your await Dexie.ignoreTransaction(()=>
this.$store.state.db.regions.where('id').equals(this.region.id).modify({acf:this.region.acf})
); If you were on dexie 1.x before, it did not survive scopes across native async calls, so the call to dexie might have worked because neither dexie or indexedDB knew about the actual ongoing transaction from the caller. Dexie >= 2.0 will keep the active transaction zone alive between await calls but IndexedDB still loose the transaction when calling fetch() or other non-IDB work. If this is the case, please revisit the calling code also. Do you intend to call |
I'm using Dexie 3.0.3. I'm still encountering the same issue with this code:
|
On the mounted method, I retrieve the compressor i need:
Once submitted, I call the update method i created:
I don't understand what else I can do to make this work. It used to work in the past i feel and randomly it stopped working. |
What error do you get? code of your |
Sure. ACF is a column inside of the compressors table. It stores a JSON object.
No matter what I attempt, any column or table it just continues to tell me the transaction has finished error. I'm able to perform all other methods properly without error. These update or modify methods are the only issues I encounter. |
Ok. Trying some last things here (brainstorming):
|
So I downgraded my version to 2.0.4. I get an error as usual, but i can make it work by saving the "acf" object as a string instead of JSON instead. This does not work in 3.0.3. |
I'm still encountering the same issues randomly. Looking at your suggestions, do you think using Brave (chromium based) could have anything to do with it? |
In older version of dexie I used, i was able to use this alone to update a row:
await this.$root.db.orders.where('id').equals(id).modify(order);
Now it throws that it will not execute for me. What changed between older versions and the newest version?
The text was updated successfully, but these errors were encountered: