block-editor-hmr icon indicating copy to clipboard operation
block-editor-hmr copied to clipboard

Support block variations as well as styles

Open goldenapples opened this issue 1 year ago • 0 comments

The registerBlock utility allows for exporting an array of styles, which are each registered as block styles and unregistered on hot module updates (code here).

It would be good to expose a similar interface for block variations, which calls registerBlockVariation in the registerBlock function and unregisterBlockVariation in the unregisterBlock method.

goldenapples avatar Oct 31 '23 18:10 goldenapples