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:
const protoComponent = "id";
const importProtoComponent = await figma.importComponentByKeyAsync(
protoComponent
);
const instanceProto = importProtoComponent.createInstance();
block.appendChild(instanceProto);
const prototype = figma.currentPage.findAll(
(n) => n.type === "INSTANCE" && n.name === "name"
);
prototype.createInstance();