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.
SubscribeRelated
createStorecreatesetStategetInitialStatesubscribe