Open vjeux opened 1 month ago
Thanks for reporting. This seems to be a bug on the rendering side where the component "pills" are swallowing the text content. We'll work on a fix and release it in a future release.
Awesome thank you for confirming this is a real issue!
This should be now be fixed and the text should be rendering in the snippet
Thank you!
As we are trying code-connect on the internal Meta design system, we ran into an issue with React children handling textContent. We are rendering three children: two
figma.instance
and onefigma.textContent
. If all the instances are undefined, then the text shows up just fine. If any of them exists, then the textContent doesn't appear. It looks like a bug, but unclear what is going on.Text doesn't appear:
Text appears:
If we wrap
{props.textContent}
in<></>
then it's always rendering, but it does show the<></>
which is not what we want.