Dexie.js
Dexie.js copied to clipboard
Multiple databases being created inadvertently
Hi,
I have noticed that while testing, multiple databases are created inadvertently For example I can see on your example app:
https://stackblitz.com/edit/dexie-todo-list?file=models%2Fdb.ts
Its creating multiple databases:

Notice the 2 TodoDB's with identical information in them. Am i mis-understanding something here? Am i interpreting the dev tools incorrectly?
Also the issue seems to be worse on safari, it creates copies of databases for multiple origins:

Any help would be greatly appreciated
This has been reported before and turned out to be a bug in safari webtools. There are actually only a single database but webtools show them as multiple (if i recall the prior posts about this correctly)
Ok thanks for clarifying @dfahlander - i assume you mean this one: https://github.com/dfahlander/Dexie.js/issues/1027
I also see multiple databases in chrome also - same sort of issue with chrome dev tools ?
The issue has only been reported on Safari so far. Do you have a screenshot of the issue in chrome devtools?