Skip to main content
Question

How should I get the mainComponent of the detached component in Dev Mode?


The figma.importComponentByKeyAsync() method cannot be used under devMode, how should I get the mainComponent of the detached component in devMode mode?

2 replies

tank666
  • 4859 replies
  • February 5, 2024

As a possible way, try to find an instance in the document whose main component has the same key.


  • Author
  • 1 reply
  • February 7, 2024

Thank you for your reply. There seems to be no better way at the moment.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings