If you have a flyout with submenus, items that have them, can’t be changed. In my case, I want to change the label. Programatically it shows changed, but in the UI, when you expand the flyout menu, it’s still the old label. No problems there with items inside that menu, but the holder itself fails to update in UI
const ep = require("uxp").entrypoints
const { menuItems } = ep.getPanel("panel1")
const item = menuItems.getItem("itemWithSubmenu")
console.log(item.label) // Old label
item.label = Math.random() + ""
console.log(item.label) // Random number - updated for normal items in UI, but stays the old on submenu holder
And this is not the only issue with flyout and submenus