createMobxStoreSync
createMobxStoreSync<
TState>(initialState,options?):MobxAdapter<TState>
Defined in: index.ts:98
Construct a MobX-backed store synchronously. Suitable for SSR — call
from inside a render function or useMemo without awaiting.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TState | any |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
initialState | TState |
options? | MobxAdapterOptions |
Returns
Section titled “Returns”MobxAdapter<TState>