Skip to content

createZustandStoreSync

createZustandStoreSync<TState>(initialState): Store<TState>

Defined in: index.ts:148

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

Type ParameterDefault type
TStateany
ParameterType
initialStateTState

Store<TState>