Zustand · Pipe
serialize
Zustand's persist middleware saves store state in storage and restores it later. It works with browser storage and custom synchronous or asynchronous storage providers.
Last updated
Syntax
persist(stateCreator, options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
persistcreateJSONStoragePersistStoragerehydratecreatecreateStore