Skip to content

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

@MG1376

Description

@MG1376

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions