Skip to content

createJotaiStore

createJotaiStore<TState>(initialState, options?): Promise<Store<TState>>

Defined in: index.ts:121

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
options?JotaiAdapterOptions

Promise<Store<TState>>