Skip to main content
Version: 1.2.0-beta1

Interface: MnemonicKeySSRConfig<T>

Defined in: src/Mnemonic/types.ts:268

Hook-level SSR controls for useMnemonicKey(...).

Lets a key render a deterministic server snapshot and optionally delay reading persisted storage until after client mount.

Type Parameters

Type ParameterDescription
TThe decoded value type for the key

Properties

hydration?

optional hydration: MnemonicHydrationMode

Defined in: src/Mnemonic/types.ts:286

Hydration strategy for this key.

When omitted, inherits the provider default.


serverValue?

optional serverValue: T | () => T

Defined in: src/Mnemonic/types.ts:279

Value to expose during SSR and hydration instead of defaultValue.

This value is not persisted automatically. Once hydration completes, the hook transitions to the stored value (if any) or back to defaultValue.

Factory functions should be deterministic across server render and client hydration to avoid markup mismatches.