Create a new Store, if the store already exists, then it will be returned, safe for async operations.
the string ID of the store you want to create (i.e. 'UserStore')
pre-populate store with a map of id's to values.
reference to the BusStore you have just created.
Destroy a store (destructive). If called for a galactic store, will trigger closeGalacticStore request to the backend and will destroy the local store copy (store's items on the backend will not be affected).
the string ID of the store you want to destroy (i.e. 'UserStore')
Get ALL stores.
Get a reference to the existing store. If the store does not exist, nothing will be returned.
the string ID of the store you want a reference to (i.e. 'UserStore')
Opens a galactic store.
optional broker identity that looks like host:port/endpoint
When you need to wait for more than a single store to be ready, readyJoin takes an array of StoreTypes and returns a reference to StoreReadyResult, any function you pass to whenReady will be excuted once all stores have been initialized.
array of StoreTypes you want to wait for initialization on.
Wipe out everything, will eradicate all state from all stores by destroying all stores.
Generated using TypeDoc
BusStoreAPI is the interface exposed buy EventBus to allow interactions with Stores.