I’m working on making some of my components more usable and trying to reduce duplicate code. In this sample gist, you can see I’m using <SocialMediaIcons> to output a chunk of social links. This works great in the edit function, but breaks the block if I try to put it in the save function. Any thoughts on how to make this component available in the save function as well? Thanks in advance for any thoughts!
Unfortunately there are some issues with getting JS driven blocks to work on the frontend, as crazy as that sounds. This is something they are working on. This may be related, but may not be.
When I try to reference the SocialMediaIcons component in the save function, I get an undefined error. “ReferenceError: SocialMediaIcons is not defined.” That component is defined in the edit function and works as expected in that sense.