Skip to main content

getStore()

function getStore(): unknown;

Gets the global Redux store instance.

Returns

unknown

The configured Redux store

Example

const store = getStore();
store.dispatch(someAction());