createZustandStore
createZustandStore<
TState>(initialState):Promise<Store<TState>>
Defined in: index.ts:155
Async wrapper retained for back-compat with consumers that awaited the old dynamic-import based factory. Resolves immediately now.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TState | any |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
initialState | TState |
Returns
Section titled “Returns”Promise<Store<TState>>