Skip to main content
Question

The data saving with figma.root.setPluginData in a branch will not be merged into main branch

  • September 13, 2023
  • 3 replies
  • 484 views

Satoru_Kawahara

I’m creating a plugin that saving data to the file with figma.root.setPluginData.
I noticed that I will lose new saved plugin data on a branch when I merge the branch.

Is this expected behavior?

Maybe, I can use figma.clientStorage instead, but I’d like to share the plugin data between some editors and review changes in the branch.

Memo: How to retrieve the “lost” data

  1. “See all branches”
  2. Open merged branch in “Archived”
  3. “Duplicate as new file”
  4. Run the plugin on the duplicated file.
This topic has been closed for comments

3 replies

parrot
  • New Participant
  • 18 replies
  • September 13, 2023

I have observed similar behaviour when integrating offline changes. I guess this goes into the same direction - no response from the Figma team yet.


Satoru_Kawahara

I found that it happens setPluginData on figma.root, but doesn’t happen on a PageNode.

When I setPluginData on a PageNode then I can merge as I expected. Also, I can see the diff in the branch review window.

It may be one of the work-around. But if someone delete the node, the plugin data will be gone 😦


parrot
  • New Participant
  • 18 replies
  • September 15, 2023

Thats an interesting observation - i will check if this applies to my sync issue as well.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings