Safari IndexedDb duplicate db
See original GitHub issueI created issue on stackoverflow link with screenshort This bug reproduce only in Safari https://stackoverflow.com/questions/53560736/indexeddb-duplicate-only-in-safari Code:
Idb.initDb()
.then(isUpdate => {
console.log(isUpdate);
}
).catch((error) => {
console.log(error);
});
static initDb = async () => {
const db = await idb.open(dbState.name, dbState.version, (upgradeDB) => {
dbState.stores.forEach((store) => {
if (!upgradeDB.objectStoreNames.contains(store)) {
upgradeDB.createObjectStore(store);
console.log('The store -', store, ' was added to db');
}
})
});
};
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
How to replicate IndexedDB "Databa… - Apple Developer
I'm having this error "UnknownError: Database deleted by request of the user" reported to our error reporting system for a significant number of...
Read more >Three ways to delete IndexedDB instances from Safari's ...
Of course one quick way to do it is to go to Safari's Preferences > Privacy > Manage Website Data..., find the website...
Read more >IDBIndex.unique - Web APIs | MDN
The unique read-only property returns a boolean that states whether the index allows duplicate keys.
Read more >IndexedDB is completely broken in latest Safari - Hacker News
So yes it is absolutely possible to implement a SQL database on top of indexed DB, and that would be the architecturally logical...
Read more >Safari does NOT support indexedDB.databases()
I am using Safari 12.1 and working on IndexedDB with javascript. I need to get all indexedDB database names but safari does not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue doesn’t seem to be specific to this library. I use Dexie and the same problem appears
Yeah, databases are unique per name per origin.
If there isn’t any data loss associated with this, then I suspect it’s just a UI bug. I guess you could look into the profile and if the information is actually duplicated.