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 Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TState | any |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
initialState | TState |
options? | JotaiAdapterOptions |
Returns
Section titled “Returns”Store<TState>