Skip to main content
Version: 1.2.1-beta1.0

Type Alias: MnemonicHydrationMode

MnemonicHydrationMode = "immediate" | "client-only"

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

Controls when a hook should read persisted storage during client rendering.

  • "immediate" — Default. The server snapshot is used during SSR/hydration, and the hook reads persisted storage as soon as React switches to the client snapshot.

  • "client-only" — Defers all storage reads until after the component has mounted on the client. This is useful when you want a deterministic server placeholder and prefer the persisted value to appear only after hydration completes.