Skip to main content
Question

It is not possible to see the updated node in a console while a plugin is open

  • January 6, 2023
  • 1 reply
  • 396 views

Aqil_Manzoor

While my plugin is running, I converted group into frame. So, I checked my selected node on my console using figma.currentPage.selection[0]. It shows me the previous state of a node, however

This topic has been closed for comments

1 reply

tank666
  • 4871 replies
  • January 6, 2023

This is currently expected behavior. Check out the following quote from the Figma Developers website:

⚠️ It is possible for a user to convert a frame into a group via the UI, and vice-versa. If you hold onto a node in a long-running plugin, you can’t assume its type never changes.
FrameNode | Plugin API


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