I was bitten by this as well, and it caused me much frustration. I had exactly the same nested block duplication problem that you described above.
I was able to solve this issue by specifying an apiVersion for my custom block.
E.g.:
registerBlockType("custom-cafe-theme/custom-column",{
apiVersion: 2, // or 3
title: "Custom Column",
attributes: {
imgID: { type: "number" },
imgUrl: { type: 'string',default: '' },
},
edit: EditComponent,
save: SaveComponent
})
Related Posts:
- Event when Modal is opened/visible
- Cannot call a class as a function in block plugin react component
- How to include jQuery and JavaScript files correctly?
- Include third party Javascript library which is not included in WordPress
- jQuery in header or footer
- How to Add a .js file Only in one specific Page Dynamically to Head
- lodash dependency in a Gutenberg plugin
- creating elements/innerblocks via rangecontrol
- Looking for callback function after Gutenberg is rendered?
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- What’s the better way to add an inline script?
- Gutenberg: useDispatch is not a function – @wordpress/data included
- Make a list with header and subtext in Gutenberg blocks
- Gutenberg – What is the best way to save/update post meta?
- Are block templates incompatible with serialize_blocks?
- How to access noticeOperations from withNotices
- How to prevent UNDO on guternberg block editor
- Do I have to worry about useState causing a re-render?
- WP Gutenberg Blocks – How to limit first/root blocks
- Creating a custom Gutenberg block with columns
- How to get boolean value from register_meta properly?
- Gutenberg: import dependency or assign from global variable?
- How to control an elements classes from multiple Gutenberg sidebar controls?
- How to only load css for used blocks on frontend
- Invalid hook call on save, not edit when using swiper slider
- Proper way to use useSelect
- Gutenberg blocks error: Each child in a list should have a unique “key” prop
- Developing the save function in Gutenberg blocks
- Gutenberg – is it ok to load dependencies multiple times?
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- Pass custom props to
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- How to extend SelectControl with data from my theme
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- Rerender core Templates with with ToggleControl but it doesnt recognize block type
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- What happens/fires when you select a block in the editor?
- Is “document loaded” different on admin side than public side?
- How to use setAttributes outside of the edit function return
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- Reading plugin settings in esnext wordpress block
- Gutenberg text field validation
- How can i add insertion point between inner blocks in my custom block like core blocks
- How to get the value entered in the input field in wordpres
- How react js and other Javascript Technologies works on WordPress plugin?
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?
- Reinitiate Gutenburg’s blocks using javascript
- How can I include React useState in a custom gutenberg block plugin?
- Remove Gutenberg Buttons Block
- Insert text programmatically in WordPress Gutenberg Editor
- Javascript function defined in view.js not reachable from save.js
- How to move custom gutenberg block controls from settings to styles tab?
- How to use useSelect to retrieve the currently default fontFamily?
- move useState variable from edit.js to save.js. How do I do that?
- Gutenberg Static blocks: viewScript doesn’t import css for frontend?
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- What process do you use for WordPress development? [closed]
- What is the advantage of using wp_mail?
- Should I create a theme or a plugin?
- wp_remote_get doesn’t work with secure connections https?
- Custom theme sufficient or custom plugin neccessary for this feature set?
- Create Element From Dynamic HTML String [closed]
- Paging on a future post loop?
- How to create multiple Gutenberg blocks in one plugin
- How to get color name in PanelColorSettings in custom Gutenberg block?
- Change template dynamically
- Get Current Menu Location inside Nav_Walker
- Howto: Use Custom Post Types as Submenu Items in Admin
- How to setAttributes in Gutenberg block?
- What’s the right way to instantiate new blocks and/or the plugin itself in toto when using wppb architecture?
- “import declarations may only appear at top level of a module” when importing WooCommerce API node module
- How can I avoid conflicts between plugin and theme?
- How should I go about registering JavaScript that isn’t a file? [duplicate]
- Plugin is not generating title tags on any pages or posts
- Update Data parameter of a wp_localize_script() call
- get_the_tags with separator control?
- Add child pages to submenu automatically
- Why in this archive page that call query_posts() function show only the last 10 posts?
- Translate javascript with WordPress built-in localization API for static strings
- Why would you use esc_attr() on internal functions?
- How to find where an object first instantiatiation
- Full documentation about $args for register_rest_route?
- WordPress dynamic widget by location?
- extraprops override existing props
- WordPress Favicon not Working For Images/Videos/PDFs
- converting a node.js project into a wp plugin
- Is it possible to develop themes and plugins locally while still allowing content to be updated directly in the admin dashboard?
- register dependency css and js inside a plugin class
- How to integrate plugins into block editor
- How to create save function for custom Gutenberg style block?
- Using JavaScript in WordPress page to call for server data using AJAX
- Custom premium registration form and profile page for a WordPress Web Application
- How to destroy or dispose wordpress uploder/manager?
- To remove rendering of menus and header, plugin or theme?
- Display Data’s metabox in page
- How can I make my website with wordpress having on-spot editing feature as compared to concrete5 CMS?
- How to add more elements to an already existing section in Gutenberg
- When trying to run build script with gutenberg (with SVG import) – Error: Plugin name should be specified
- how to add contact form 7 shortcode in javascript variable
- Template locked block does not show appender