Skip to main content
Question

documentchange Event Stops Triggering After Undo Operation

  • March 18, 2025
  • 0 replies
  • 26 views

nmnishantx

Steps to reproduce :

 

  1. Create a simple Figma plugin that listens to the "documentchange" event and logs the changes.
  2. Create a Figma node using figma.createNodeFromSvg().
  3. Delete the created node (using “node.remove()”) and recreate it
  4. Press Undo (Cmd+Z / Ctrl+Z).
  5. Observe the console: the "documentchange" event no longer triggers after the undo action. + Error is logged (Internal Figma error: Unknown node type for node in getPublicNodeType)

 

This topic has been closed for replies.