This is not currently a bug because it hasn’t been implemented yet and the variables are in beta.
Hi, we also encountered this problem, the style change callbacks can’t work when local variables change. Could I ask when it will be supported ? Thank you~
figma.on("documentchange", (event) =>
{
for (const change of event.documentChanges)
{
switch (change.type)
{
case "STYLE_CREATE":
break;
case "STYLE_DELETE":
break;
case "STYLE_PROPERTY_CHANGE":
break;
}
}
}
Hello! I also encountered this problem.
Since Local variables are out of beta, is there any way to listen for changes in variables? Or when will this option be added to the API?
“documentchange”, “nodechange” and “stylechange” do not listen for these changes. The only way is to use setInterval and compare changes manually but it is not efficient and the best solution.
Thanks!