woocommerce/plugins/woocommerce-blocks/assets/js/data/schema/index.js

27 lines
549 B
JavaScript

/**
* External dependencies
*/
import { register, createReduxStore } from '@wordpress/data';
import { controls } from '@wordpress/data-controls';
/**
* Internal dependencies
*/
import { STORE_KEY } from './constants';
import * as selectors from './selectors';
import * as actions from './actions';
import * as resolvers from './resolvers';
import reducer from './reducers';
const store = createReduxStore( STORE_KEY, {
reducer,
actions,
controls,
selectors,
resolvers,
} );
register( store );
export const SCHEMA_STORE_KEY = STORE_KEY;