UNPKG

@wordpress/interface

Version:

Interface module for WordPress. The package contains shared functionality across the modern JavaScript-based WordPress screens.

30 lines (27 loc) 745 B
/** * WordPress dependencies */ import { createReduxStore, register } from '@wordpress/data'; /** * Internal dependencies */ import * as actions from './actions'; import * as selectors from './selectors'; import reducer from './reducer'; import { STORE_NAME } from './constants'; /** * Store definition for the interface namespace. * * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore * * @type {Object} */ export const store = createReduxStore(STORE_NAME, { reducer, actions, selectors }); // Once we build a more generic persistence plugin that works across types of stores // we'd be able to replace this with a register call. register(store); //# sourceMappingURL=index.js.map