Zustand · Method
persist.onFinishHydration
Zustand's persist middleware saves store state across page reloads or application restarts. It can use built-in or custom synchronous and asynchronous storage.
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
createJSONStoragerehydratehasHydratedonHydrateonFinishHydrationPersistStorageStateStorage