Skip to main content
str1ve
Jul 28, 2023 4:45 AM UTC

Figma.on event

Hello. Recently I worked with plugin that can work only in “export” page. It was easy to add listener on page change, but rename page doesn’t trigger any event. Because of it user after rename should re-open plugin or change page and get back to export. Not really cool UX… I think it will be better to trigger currentpagechange.

2 replies

tank666
Jul 28, 2023 8:02 AM UTC

Have you tried listening to the documentchange event?

figma.com

https://www.figma.com/plugin-docs/api/DocumentChangeEvent

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
str1ve
str1veAuthor
Jul 28, 2023 8:21 AM UTC

God, why it works only after asking on forum 💀
Yep, thanks, this is what I need