Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Credentials component - replaces localstorage with indexed db #224

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

petrKavulok
Copy link
Contributor

No description provided.

let credentialsInIDB = [];
let db;

const request = window.indexedDB.open('ASAB|Credentials', 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmms, you need to create the CredentialsService and open the database during init-time, then keep it open.
Opening/closing is what makes your implementation slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants