Skip to content
masterclass Buddy

Zustand · Method

persist.getOptions

persist.getOptions() returns the current options for Zustand's persist middleware. Use it to inspect settings such as the storage name.

Last updated

Since
>=3.6.3

Syntax

getOptions: () => Partial<PersistOptions>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • persist
  • PersistOptions
  • setOptions
  • clearStorage
  • rehydrate

Source: Persisting store data. Checked 2026-11-03.