block-editor-hmr
block-editor-hmr copied to clipboard
Support block variations as well as styles
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.