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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.