Skip to content
masterclass Buddy

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.

Subscribe
  • create
  • createStore
  • useStore
  • setState
  • getInitialState
  • subscribe

Source: createStore - Zustand Docs. Checked 2026-11-03.