Zustand · Method
useStore.getState
getState reads the current state from a Zustand store. It can be called directly on a vanilla store or on the API attached to a store created with create.
Last updated
Syntax
store.getState()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createcreateStoreuseStoresetStategetInitialStatesubscribe