import { store as editPostStore } from '@wordpress/edit-post';
Is not the same as
const { editPostStore } = wp.editPost.store;
In the first line store
is editPostStore
, but in your second line editPostStore
is a property of store
, but it doesn’t exist.
The correct syntax is
const editPostStore = wp.editPost.store;
Or
const { store: editPostStore } = wp.editPost;
Related Posts:
- Why is the new Gutenberg editor so narrow, and how to make it wider?
- Notion-like editing and layout with a convenient freeform collaborative editor in WordPress? [closed]
- How to Batch Convert Gutenberg post to Classic post?
- How do I trigger the sidebar reveal for my sidebar plugin in the Gutenberg editor?
- Block editor: content resets to the previous state in “Edit as HTML” by clicking somewhere outside of the editing window
- Images are not shown in the post editor
- What is the standard way to use the version of React that ships with Gutenberg on the front end?
- How can I render a built-in Gutenberg block with InnerBlocks outside of the block editor?
- wordpress 6.2 is alignfull and lignwide removed?
- What is the proper way of using React Hooks in Gutenberg on frontend?
- How to dynamically add style tags to Gutenberg editor in react
- How to implement Mapbox GL JS with a custom Gutenberg block in FSE?
- Gutenberg Dev – React Context.Provider returns undefined
- Avoid automatic scroll jump when dragging a resize handle in a Gutenberg block
- Implementation of React-Datepicker component with Gutenberg in WordPress
- How can i extend the existing Block Inspector Tabs in WordPress Gutenberg Editor?
- Get realtime title and featured image value in WordPress block
- How to get block editor block inspector attribute value in my react block
- Detecting whenever a user types – in the Gutenberg editor, and checking if there is a preceding or succeeding – then converting both to an em dash
- Gutenberg editor styles not applied
- Patterns are not displaying in Custom Gutenberg editor component to render gutenberg everywhere
- Where can I find the Gutenberg block icons?
- Add pre-publish conditions to the block editor
- How to filter or remove default panels in Gutenberg PrePublish Panel
- Deactivate Gutenberg tips forever – not Gutenberg
- How does Gutenberg handle translations in React?
- Add To Gutenberg Sidebar
- How to detect the usage of Gutenberg
- Integrate Gutenberg as a Standalone App
- Help Unregistering a Core Block Type in Gutenberg
- How do I register multiple blocks with block.json and register_block_type_from_metadata?
- Remove block styles in the Block Editor
- Disable Gutenberg text-Settings in all blocks
- How do I get the current post ID within a Gutenberg/Block Editor block?
- Looking for all available options of Gutenberg Block
- Possible to use @wordpress/create-block with multiple blocks?
- Are there ways to make the Gutenberg editor wider? And the HTML-block higher?
- Blocks: set a default value for a TextControl
- gutenberg block – how to force update after attribute changed?
- What is the advantage of ‘register_block_type’ (the PHP function) when creating custom blocks?
- How to trigger JS in gutenberg page load
- How to make a script load after Custom Block is loaded in the editor?
- Allow excerpt for pages in Gutenberg?
- WordPress Gutenberg Embed Blocks Are Not Responsive
- Is there a list / reference for all current native WordPress blocks?
- Gutenberg: Block validation failed
- Set fullscreen mode by default
- How to query multiple post types inside Gutenberg options panel?
- How can I add a custom attribute to Gutenberg core blocks?
- Gutenberg extend core blocks
- Setting default font family with theme.json
- How can I access core/paragraph textColor in a block template
- (Gutenberg Block Editor) Using editor.BlockEdit filter, need to alter html/ CSS class of BlockEdit Component
- Add Button To Top Toolbar in Gutenberg
- Saving post meta using the new EntityProvider APIs
- Disable device preview options in the block editor
- Add additional classes to gutenberg .editor-styles-wrapper
- Implementing Gutenberg RichText onSplit / onReplace
- Change order/position of Gutenberg inspector control panel
- Get the current block ID
- Gutenberg Inspector Controls
- How to use the WordPress < LinkControl /> Component
- What version of Gutenberg is included with WordPress?
- Implement Panel Color Inspector Control in Gutenberg
- Add Formatting Buttons to Gutenberg core/paragraph BlockControls
- How do you use __experimentalLayout to give innerblocks alignment control and default layout?
- WordPress Value of Undefined in Admin
- Remove border radius setting from the Gutenberg button block?
- Extending Gutenberg group block: How to properly combine multiple attributes?
- serialize_blocks breaking html tags in content
- All post types with getEntityRecords
- gutenberg dynamic block is returning 404
- Modify the core/paragraph block
- Add PHP block template to content using wp_insert_post
- The Block Editor: Disable “Color settings” in the specific block
- Required (mandatory) Gutenberg block
- How to use getBlockIndex
- Gutenberg reusable blocks – is it possible to customise an instance?
- How to add button to post page WordPress 5.x
- Gutenberg InspectorControls is deprecated, how to add custom block settings?
- Add classname to Gutenberg block wrapper in the editor?
- Hide or show Gutenberg custom block using date range
- How to disallow a certain custom gutenberg block outside of an InnerBlocks block?
- How should you internationalize javascript spread in multiple files but build in one?
- Use page Title in Gutenberg custom banner block
- How to add code to `head` with WordPress 5.9 FSE (Full Site Editing)
- Why is onChange={ ( content ) => setAttributes( { content } )} now used?
- Serialize custom block with InnerBlock
- How to develop custom blocks without triggering validation errors
- Dynamic gutenberg block with react instead of php
- get selected categories or tags (using javascript) in GutenBerg?
- File structure and react setup when creating multiple Gutenberg blocks
- Block Editor: add an aria-label to an option inside a SelectControl
- WordPress Gutenberg blocks: Input fields are not editable
- Gutenberg withInstanceId. When to use it?
- Gutenberg: Get All Attributes From «core/image» Block
- What replaces wpColorPicker in Gutenberg?
- How to make the Preview button automatically open new tab?
- Help with using getBlockIndex
- How to set column widths in a CPT block template?