Skip to content

Documentation / @etherfold/browser / createBrowserStateStore

Function: createBrowserStateStore() ​

createBrowserStateStore(declarations, config?): Promise<StateStoreBackend>

Defined in: packages/browser/src/storage/state-store/BrowserStateStore.ts:253

The store, migrated and ready.

migrate is called here (it is idempotent everywhere) so that a host gets something it can read from, rather than a store that throws on first use for a reason it has to learn.

Parameters ​

declarations ​

readonly EntityDeclaration[]

config? ​

BrowserStateStoreConfig = {}

Returns ​

Promise<StateStoreBackend>