Skip to content

Commit

Permalink
Edit Post: Revert store registration
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Nov 18, 2020
1 parent dfec26b commit 4d8cf8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/edit-post/src/store/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { createReduxStore, register } from '@wordpress/data';
import { createReduxStore, registerStore } from '@wordpress/data';

/**
* Internal dependencies
Expand All @@ -27,4 +27,5 @@ const storeConfig = {
*/
export const store = createReduxStore( STORE_NAME, storeConfig );

register( store );
// Ideally we use register instead of register store.
registerStore( STORE_NAME, storeConfig );

0 comments on commit 4d8cf8e

Please sign in to comment.