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
Page 1 / 1
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
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.