Please help me debugging because Dexie is dead after doing db.delete() then db.open() in Electron app #2191
-
db.ts:
Here is the delete function:
If you run it the first time after a version upgrade, it works. But when the app is restarted, running this delete function would make the Dexie fails. The console would show this:
So it looks like Dexie fails to Deleting the database manually via the Chrome Inspector doesn’t resolve the issue. Increasing the version number and reloading fixes it, but the problem reappears when restarting the app and running the delete function. Could you please guide me on how to debug this issue? There are no errors, and I have no clue what’s causing it. It suddenly appeared yesterday. The error occurred in v4.0x, and I updated it to v4.2 after the issue. Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Closed. I need to use the |
Beta Was this translation helpful? Give feedback.
Closed. I need to use the
vipDb
provided by thethis.on("ready", (vipDb))
listener in order to prevent any db actions in that listener from being blocked.