O3 Framework / createGlobalStore
createGlobalStore<
T>(name,initialState,storageType):StoreApi<T>
Defined in: packages/framework/esm-state/src/state.ts:35
Creates a Zustand store.
T
string
A name by which the store can be looked up later. Must be unique across the entire application.
T
An object which will be the initial state of the store.
StorageType = 'none'
The type of storage to use for persisting the store’s state. Defaults to ‘none’.
StoreApi<T>
The newly created store.