Redux Toolkit / React Redux
getState
Returns the current root store state; treat it as read-only.
Formal Syntax & Structure
react syntaxreact
store.getState()Working Example
Example Snippetreact
store.getState()Returns the current root store state; treat it as read-only.
store.getState()store.getState()