O3 Framework / getGlobalStore
getGlobalStore<
T>(name,fallbackState?,fallbackStorageType?):StoreApi<T>
Defined in: packages/framework/esm-state/src/state.ts:102
Returns the existing store named name,
or creates a new store named name if none exists.
T
string
The name of the store to look up.
T
The initial value of the new store if no store named name exists.
StorageType = 'none'
The type of storage to use for the new store if no store named name exists. Defaults to ‘none’.
StoreApi<T>
The found or newly created store.