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

How to test for existing store before creating new one #32

Open
MG1376 opened this issue Jun 12, 2024 · 0 comments
Open

How to test for existing store before creating new one #32

MG1376 opened this issue Jun 12, 2024 · 0 comments

Comments

@MG1376
Copy link

MG1376 commented Jun 12, 2024

I have this js method that I call from blazor's OnAfterRender to setup a new store or (TODO: to use existing store):

setUpSecureStore: function (passPhrase) {
    const Store = window.SecureStore.Store;
    
    const store = new Store('my-store', passPhrase);

    store.init().then(() => {
        // store is ready
        window.Store = store;
    });
},

how to check for existing store so that to set a variable of it in window.Store?

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

No branches or pull requests

1 participant