I want to give my blocks a unique ID that remains the same along post updates.
edit: class extends Component {
constructor(props) {
if(!props.blockID) this.props.setAttributes({ blockID: 'blk'+(new Date()).getTime() });
}
}
But when the user duplicates de block, causes the ID being twice on the page.
I need some way to detect the duplication and give a new ID to the block.
Thanks.