My plugin has some stuff that needs to happen when it’s closed. It seems that when the document is closed with the plugin running, my plugin closing code doesn’t run. Is there any workaround to this? Because there is one instance of the plugin per document, a closing message or something should be available.
Solved
Does Figma not let plugins properly close themselves before closing a document?
Best answer by Gleb
It can only run the closing code that is synchronous, meaning you can’t have any callbacks, async functions or network calls in the on close function.
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.