2

How can I find out whether the local db (indexedDB) with a given name already exists?

const db = await createRxDatabase({
  name: 'heroesdb',
  storage: getRxStoragePouch('idb'),
});

This approach, which is provided by the docs, just silently create a new db as long as there is no db with with the name heroesdb.

What is the best workaround to achieve that?

Ilya Loskutov
  • 1,967
  • 2
  • 20
  • 34

0 Answers0