Skip to content

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

MobxAdapter<TState>