Gutenberg: How to mix dynamic and static output?

Gutenbergs handbook (https://wordpress.org/gutenberg/handbook/blocks/creating-dynamic-blocks/) suggests to return null in the save() function for dynamic blocks.

But what if I only want parts of my block to be dynamic and others to be static?

Even if you save content statically in the save() function, it get’s completely overwritten by the dynamic content

I am wondering how to get the best of both worlds.

0

Leave a Comment