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

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 is currently expected behavior. Check out the following quote from the Figma Developers website:

:warning: 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

1 Like