fixed store used deprecated method

This commit is contained in:
Nikita 2023-06-02 23:10:17 +03:00
parent 26081c84ec
commit 784083a330

View file

@ -8,10 +8,12 @@ import * as actions from './actions';
/**
* WordPress dependencies
*/
import { registerStore } from '@wordpress/data';
import { createReduxStore, register } from '@wordpress/data';
registerStore('mind/popup', {
const store = createReduxStore('mind/popup', {
reducer,
selectors,
actions,
});
register(store);