isSavingPost() for widgets

If the goal is to display the block ID so that the user can get it easily, instead try using a block editor filter to add a panel in the sidebar: From: https://developer.wordpress.org/block-editor/reference-guides/filters/block-filters/#editor-blockedit const { createHigherOrderComponent } = wp.compose; const { Fragment } = wp.element; const { InspectorControls } = wp.blockEditor; const { PanelBody } … Read more