Zustand · Pipe
deserialize
Zustand's persist middleware saves store data to storage and restores it after reloads or restarts. It supports custom storage, partial persistence, migrations, and manual hydration.
Last updated
Syntax
persist<T, U = T>(stateCreatorFn: StateCreator<T, [], []>, persistOptions: PersistOptions<T, U>): StateCreator<T, [['zustand/persist', U]], []>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createJSONStoragePersistStoragepartializeonRehydrateStorageversionmigratemergeskipHydration