From 784083a330dc7ea4c45ee97fdf6dbaf6ab2c99aa Mon Sep 17 00:00:00 2001 From: Nikita Date: Fri, 2 Jun 2023 23:10:17 +0300 Subject: [PATCH] fixed store used deprecated method --- src/store/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index e0bb617..f1ea3b9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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);