withHydration

function
persistence/persist.ts:162
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