mirror of
https://github.com/WenPai-org/wpmind.git
synced 2025-08-03 19:19:46 +08:00
fixed store used deprecated method
This commit is contained in:
parent
26081c84ec
commit
784083a330
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue