Skip to content

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 ParameterDefault type
TStateany
ParameterType
initialStateTState

Promise<Store<TState>>