I am attempting to retrieve a value from indexedDB using Dexie.js, but it seems that the value stored in localStorage is not being recognized.
I have tried various methods including async/await, promises, placing the localStorage call in created, mounted, outside export default, and unfortunately none of these approaches have worked.
fetchData() {
return dbDexie.tactics1
.where('i')
.equals(localStorage.getItem("id")) // This line is causing the issue
.toArray()
.then((r) => r[0].f);
}