Hi Guys.
I’m importing a component using importComponentByKeyAsync and I need to remove the link with the main component.
I try to use deatchInstance, but not working.
It is possible?
Example:
1 const protoComponent = "id";2 const importProtoComponent = await figma.importComponentByKeyAsync(3 protoComponent4 );56 const instanceProto = importProtoComponent.createInstance();7 block.appendChild(instanceProto);89 const prototype = figma.currentPage.findAll(10 (n) => n.type === "INSTANCE" && n.name === "name"11 );1213 prototype.createInstance();14