Open jongjunpark opened 3 months ago
+1 to this, there are some other ticket comments that have said connecting the icon components would cause the Dev Mode view of when they're used to be updated, but I haven't seen this in practice.
Example: https://github.com/figma/code-connect/issues/98#issuecomment-2243084557
Hi @jongjunpark , can you share the Code Connect code for the icon please? If you prefer to keep private, please share via Figma support
Hi @jongjunpark , can you share the Code Connect code for the icon please? If you prefer to keep private, please share via Figma support
Hi @rrabherufigma , This is the only code for the icon Code Connect.
figma.connect(
Plus,
"https://www.figma.com/...",
{
props: {},
example: (props) => <Plus {...props} />,
},
);
Hey @jongjunpark, are you on the latest version of Code Connect (1.0.3)? I'd expect this to work if you are. I can help you debug if not!
hi, @tomduncalf-figma
I am using version Code Connect (1.0.3) (1.0.4)
I resolved the issue. I confirmed that what appears as a "nested component" only occurs in the "component playground". Please compare the attached screenshots. It would be great if this could be fixed to display the same in the "component playground" as well.
at component playground
at Inspect
Ah, looks like we have a bug in the component playground! Thanks for raising this and sorry for the confusion, we will get it fixed!
My
Button
leadingIcon or trailingIcon hasIcon component
(this is nested component) but, I want to see the "code connect" ofIcon component
without clicking this.My code
Button Component Code Connect
Icon Component Code Connect
TO-BE