Dexie.js icon indicating copy to clipboard operation
Dexie.js copied to clipboard

Multiple databases being created inadvertently

Open jooj123 opened this issue 3 years ago • 3 comments

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:

Screen Shot 2021-11-26 at 5 31 37 pm

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:

Screen Shot 2021-11-26 at 5 36 26 pm

Any help would be greatly appreciated

jooj123 avatar Nov 26 '21 06:11 jooj123

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)

dfahlander avatar Nov 26 '21 07:11 dfahlander

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 ?

jooj123 avatar Nov 30 '21 02:11 jooj123

The issue has only been reported on Safari so far. Do you have a screenshot of the issue in chrome devtools?

dfahlander avatar Dec 14 '21 13:12 dfahlander