Interface: MnemonicProviderProps
Defined in: src/Mnemonic/provider.tsx:90
Props for the MnemonicProvider component.
Extends MnemonicProviderOptions with required children prop.
See
- MnemonicProviderOptions - Configuration options
- MnemonicProvider - Provider component
Extends
Readonly<MnemonicProviderOptions>
Properties
bootstrap?
readonlyoptionalbootstrap?:MnemonicBootstrapSeed<Record<string,unknown>>
Defined in: src/Mnemonic/types.ts:212
Optional bootstrap snapshot used to seed the provider cache before the first hook subscribes.
Pass the object returned by recallMnemonic(...) when you synchronously
read values before React renders, for example to apply a theme attribute
before first paint and then ensure the first useMnemonicKey(...) read
sees the same raw storage snapshot without re-reading storage.
This seed is consumed only during the provider's initial mount. Later prop changes are ignored so rerenders do not recreate the internal store.
Inherited from
MnemonicProviderOptions.bootstrap
children
readonlychildren:ReactNode
Defined in: src/Mnemonic/provider.tsx:94
React children to render within the provider.