You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this is either a bug or just a lack of documentation and me using this wrong.
Current behavior
When using autoload, if the database already exists everything works as expected,
the issue is then on a first time load of the website the DB is yet to be created and loki throws the error
DB ERROR TypeError: The persistence adapter did not load a serialized DB string or object.
at eval (lokidb.loki.js:5577)
I've debugged it for the last hour, and it does seem like loki is trying to create a new DB if needed, the issue lays in getAppKey function, it receives the newly created catalog and tries to search for the appKey in the store index, but it is not there.
Expected behavior
To work with on first load with autoload on
Minimal reproduction of the problem with instructions
Here is how I Initialize my DB (works perfectly if autoload is off)
[X] Bug report
[X] Documentation issue or request
So this is either a bug or just a lack of documentation and me using this wrong.
Current behavior
When using autoload, if the database already exists everything works as expected,
the issue is then on a first time load of the website the DB is yet to be created and loki throws the error
I've debugged it for the last hour, and it does seem like loki is trying to create a new DB if needed, the issue lays in
getAppKey
function, it receives the newly created catalog and tries to search for the appKey in the store index, but it is not there.Expected behavior
To work with on first load with autoload on
Minimal reproduction of the problem with instructions
Here is how I Initialize my DB (works perfectly if autoload is off)
Environment
Latest
Browser/Node version: Chrome 84.0.4147.125
Others:
I doubt It's relevent, but, using typescript with vuejs
The text was updated successfully, but these errors were encountered: