You are reading the docs for 0.9. The latest version is 0.10. Read this page for 0.10 →

withHydration

function
persistence/persist.ts:166
signature
withHydration<R>(reducers, hydration): R

Replaces each reducer's initial state with what was restored for it.

Type parameters

NameTypeDescription
Rextends Record<string, { state: unknown }>

Parameters

NameTypeDescription
reducersR
NameTypeDescription
hydrationHydration

Returns

R