yuanqing / create-figma-plugin

:battery: The comprehensive toolkit for developing plugins and widgets for Figma and FigJam
https://yuanqing.github.io/create-figma-plugin/
MIT License
935 stars 89 forks source link

A more memory efficient implementation for once #186

Closed svallory closed 7 months ago

svallory commented 1 year ago

Instead of a semaphore, this implementation automatically deregisters the handler when it's called.

Return signature was maintained to keep it backwards compatible and allow manual deregistration