I'm wondering if there is a way to execute a function when a certain block is added in the editor, but not each time we edit the block.
As far as I know the only functions we can specify are edit and save.
Is there an action hook we can use or can we somehow leverage the react component life cycle by only returning a custom wrapper component in edit or would the component be recreated each time edit is called?
Has anybody already tried something like that?
Kind regards Christian