Replace duplicate block attributes in the Block Editor

Published: Leave a comment

Sometimes, you need to store unique data to a block to identify it later on. So you need to prevent having duplicate block attributes. In my case, I want to store a unique block ID. For this the clientId is useful as it’s already unique per definition (it’s a universally unique identifier generated on every editor load for every block).

Continue reading Replace duplicate block attributes in the Block Editor