Skip to content
masterclass Buddy

Zustand · Method

store.getState

store.getState() reads the current state of a Zustand vanilla store. Use it to read data or call an action outside React.

Last updated

Syntax

store.getState()

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

Subscribe
  • createStore
  • create
  • setState
  • getInitialState
  • subscribe

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