question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Safari IndexedDb duplicate db

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ywencommented, Aug 20, 2019

The issue doesn’t seem to be specific to this library. I use Dexie and the same problem appears

1reaction
jakearchibaldcommented, Apr 2, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found