Skip to content

createJotaiStoreSync

createJotaiStoreSync<TState>(initialState, options?): Store<TState>

Defined in: index.ts:112

Construct a Jotai-backed store synchronously. Suitable for SSR — call from inside a render function or useMemo without awaiting.

Pass { store: externalJotaiStore } to use an existing Jotai store — useful when sharing with other Jotai code in the same app.

Type ParameterDefault type
TStateany
ParameterType
initialStateTState
options?JotaiAdapterOptions

Store<TState>