How to use isSavingNonPostEntityChanges in the same scope correctly?

This seems to be the no-shadow rule. The problem is that it doesn’t like that you have defined two variables with the same name: isSavingNonPostEntityChanges (see code comments below). const { isSaving, isSavingNonPostEntityChanges } = useSelect((select) => { // <– here const { isSavingPost, isSavingNonPostEntityChanges } = select(editorStore); // <– and here return { isSaving: … Read more

Elements positioning in a custom block

You would need a combination of JavaScript for the custom block, and CSS to make the H1 span across both columns. The JavaScript would be like this: registerBlockType(‘my-plugin/two-columns’, { title: ‘Two Columns’, icon: ‘screenoptions’, category: ‘common’, attributes: { title: { type: ‘string’, }, imageUrl: { type: ‘string’, }, }, edit({ attributes, setAttributes }) { const … Read more