Skip to content

Redux Store getState()

If your application uses redux, a great developer experience tip would be to set the store to window.store while in dev mode. For example:

js
import { createStore } from 'redux'  
const store = createStore(todos, ['Use Redux'])

window.store = store;

This gives you easy access to the store state in the developer console:

js
window.store.getState() // returns the entire redux state.

An Image