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?
- 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: Block validation failed
- Change order/position of Gutenberg inspector control panel
- serialize_blocks breaking html tags in content
- Hide or show Gutenberg custom block using date range
- Use page Title in Gutenberg custom banner block
- How to add code to `head` with WordPress 5.9 FSE (Full Site Editing)
- Block Editor: add an aria-label to an option inside a SelectControl
- Programmatically trigger the gutenberg save
- Gutenberg : in the backend, I just want to store a JSON object
- wordpress gutenberg url popover custom options
- Text Editors Are Hiding Text
- Disabling deleting reusable blocks except on the reusable block manager
- Gutenberg remove Most Used group
- How do I disable wpautop for a specific block?
- Gutenberg. How To Register A Custom Block Style For Specific Post Type Only
- get used blocks in post and detect changing
- Gutenberg get block name
- How to enable Block Editor on the Posts page
- React to a change of the block alignment
- Object type for block Attribute (Gutenberg)
- Register multiple styles / scripts in register_block_type
- How to automatically remove noreferrer from targetd link rel attribute, on render?
- Should there be concern about breaking Gutenberg updates to extended core blocks?
- How do I access onMerge, onReplace, onRemove functions for a Rich Text component in Gutenberg block code?
- How can Reusable Blocks be fully deleted?
- Make a Gutenberg Block that do WP_User_Query
- Gutenberg Block Get Author Details
- Gutenberg Block Toolbar – remove button
- Block background color not appearing on site
- For developers, what impact can we expect Gutenberg to have on the loop?
- Why is an argument of onChange nested in … in Gutenberg custom block RichText?
- Gutenberg: Heading with subheading/paragraph
- BlockControls not showing floating (show up in the top toolbar)
- Change label text in Gutenberg’s built in excerpt panel
- Style Gutenberg Editor based on Post Type or Page Template
- Gutenberg: How filter blocks of a certain type with parse_blocks recursively?
- Gutenberg add checkbox using PluginPostStatusInfo
- find out reason of “Updating failed” in Post-editor
- How do I activate a certain block template only when editing the front page?
- LinkControl – how to toggle opensInNewTab
- Code block treats characters not being escaped
- Strange effect when I scroll in the editor
- Creating a custom slider block from InnerBlocks using React Slick
- Alter core block’s DOM – in both output AND editor
- ServerSideRender not rendering in block editor, but output is in “apiFetch”
- Can you disable typography panels for just the paragraph block?
- I cant find the custom html block
- Gutenberg allow use of block, but hide it from the block picker
- Keyboard shortcut to format text as superscript or subscript
- How to add custom HTML tags in the visual mode via keyboard only?
- Add page title after first block
- Save JSON data with Gutenberg and show it in the content
- How can I programmatically disable Gutenberg query block patterns?
- Is it possible to use the WordPress block directory to make my own custom blocks
- how to copy shortcode into a block?
- Block editor: Sandbox iframe shows outdated HTML
- Gutenberg Development vs Release version?
- Using styled-components in the save() function on gutenberg
- block theme FSE – save changes to the theme?
- How can I avoid setTimeout and redundant getEntityRecord calls in a block editor sidebar?
- Can this react script be optimized? How to make it faster
- Possible to use a block filter (blocks.getSaveContent.extraProps) with dynamic blocks?
- Elements positioning in a custom block
- Is it possible to get rid of the wrapping divs on a block component?
- How to get appender icon to appear more often for innerblock usage
- Create a block variation of list elements
- Remove ‘default’ font option from Gutenberg typography settings
- Globally update pattern styles
- Block-based navigation and multi-language plugins
- Custom Gallery Block – Uncaught TypeError: setAttributes is not a function
- how to display gutenberg editor in a view
- Gutenberg list items nesting and creating invalid content errors
- Trying to understand block alignment
- Custom Link Block with own background color
- Gutenberg Group block missing Layout options
- How to use ACF fields content in backend?
- Get postId and postType of a template part in react component
- Default RichText Editor custom block fails validation
- Register block pattern category with higher priority
- Block validation – conflict between my attrributes and save.js file
- useBlockProps() nests wrapper with class name inside block wrapper in the editor
- How do I edit a block pattern of mine?
- How to transform a shortcode into a block